diff options
author | Owen Anderson <resistor@mac.com> | 2007-11-27 03:33:40 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-11-27 03:33:40 +0000 |
commit | 515152a9ef3353c9deb67bb9a1e73e3601d71a72 (patch) | |
tree | 3ba6c4c6f7f43e23a076528af1c671d170a4e423 | |
parent | ca35fe603f6312b3cdfde82a7a16b1f514c31a78 (diff) | |
download | external_llvm-515152a9ef3353c9deb67bb9a1e73e3601d71a72.zip external_llvm-515152a9ef3353c9deb67bb9a1e73e3601d71a72.tar.gz external_llvm-515152a9ef3353c9deb67bb9a1e73e3601d71a72.tar.bz2 |
Add accessor for getting the underlying templated type. This is necessary for templated LoopInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44347 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineDominators.h | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 9b0ef72..956ed1a 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -670,6 +670,8 @@ public: 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). diff --git a/include/llvm/CodeGen/MachineDominators.h b/include/llvm/CodeGen/MachineDominators.h index 01a09a7..bddc5c2 100644 --- a/include/llvm/CodeGen/MachineDominators.h +++ b/include/llvm/CodeGen/MachineDominators.h @@ -54,10 +54,12 @@ public: 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 |