Add accessor for getting the underlying templated type. This is necessary for templa...
authorOwen Anderson <resistor@mac.com>
Tue, 27 Nov 2007 03:33:40 +0000 (03:33 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 27 Nov 2007 03:33:40 +0000 (03:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44347 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h
include/llvm/CodeGen/MachineDominators.h

index 9b0ef723efd4c7bc9d17485afc47146e807b255a..956ed1a36f116202a8434602def65d4a0d8c62cc 100644 (file)
@@ -670,6 +670,8 @@ public:
     delete DT;
   }
   
     delete DT;
   }
   
+  DominatorTreeBase<BasicBlock>& getBase() { return *DT; }
+  
   /// getRoots -  Return the root blocks of the current CFG.  This may include
   /// multiple blocks if we are computing post dominators.  For forward
   /// dominators, this will always be a single block (the entry node).
   /// getRoots -  Return the root blocks of the current CFG.  This may include
   /// multiple blocks if we are computing post dominators.  For forward
   /// dominators, this will always be a single block (the entry node).
index 01a09a79226501d74d5a42bca7fafcbbbc575ec9..bddc5c2796939cf3a0d6fabbe3ba18de81791982 100644 (file)
@@ -54,10 +54,12 @@ public:
     delete DT;
   }
   
     delete DT;
   }
   
-   virtual void getAnalysisUsage(AnalysisUsage &AU) const {
-     AU.setPreservesAll();
-     MachineFunctionPass::getAnalysisUsage(AU);
-   }
+  DominatorTreeBase<MachineBasicBlock>& getBase() { return *DT; }
+  
+  virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+    AU.setPreservesAll();
+    MachineFunctionPass::getAnalysisUsage(AU);
+  }
   
   /// getRoots -  Return the root blocks of the current CFG.  This may include
   /// multiple blocks if we are computing post dominators.  For forward
   
   /// getRoots -  Return the root blocks of the current CFG.  This may include
   /// multiple blocks if we are computing post dominators.  For forward