R600: Don't promote allocas when one of the users is a ptrtoint instruction
[oota-llvm.git] / tools / opt / GraphPrinters.cpp
index 9ec55134f59625d221b965c23eab23cf3a3fd493..640edfee41dec002ec300b688154ad70cc7e3073 100644 (file)
@@ -29,14 +29,13 @@ namespace {
     static char ID; // Pass identification, replacement for typeid
     DomInfoPrinter() : FunctionPass(ID) {}
 
-    virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+    void getAnalysisUsage(AnalysisUsage &AU) const override {
       AU.setPreservesAll();
-      AU.addRequired<DominatorTree>();
-
+      AU.addRequired<DominatorTreeWrapperPass>();
     }
 
-    virtual bool runOnFunction(Function &F) {
-      getAnalysis<DominatorTree>().dump();
+    bool runOnFunction(Function &F) override {
+      getAnalysis<DominatorTreeWrapperPass>().dump();
       return false;
     }
   };