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 | 5aad0d7ea2a5feeab15847744b3d5350876f78fb (patch) | |
tree | 812373f03a67116a32c139ab1335d7a4863ab24f | |
parent | 20a104c87ffa490fb002093d87535e0731882547 (diff) | |
download | bcm5719-llvm-5aad0d7ea2a5feeab15847744b3d5350876f78fb.tar.gz bcm5719-llvm-5aad0d7ea2a5feeab15847744b3d5350876f78fb.zip |
Add accessor for getting the underlying templated type. This is necessary for templated LoopInfo.
llvm-svn: 44347
-rw-r--r-- | llvm/include/llvm/Analysis/Dominators.h | 2 | ||||
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineDominators.h | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/llvm/include/llvm/Analysis/Dominators.h b/llvm/include/llvm/Analysis/Dominators.h index 9b0ef723efd..956ed1a36f1 100644 --- a/llvm/include/llvm/Analysis/Dominators.h +++ b/llvm/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/llvm/include/llvm/CodeGen/MachineDominators.h b/llvm/include/llvm/CodeGen/MachineDominators.h index 01a09a79226..bddc5c27969 100644 --- a/llvm/include/llvm/CodeGen/MachineDominators.h +++ b/llvm/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 |