Add accessor for getting the underlying templated type. This is necessary for templated LoopInfo.

llvm-svn: 44347
This commit is contained in:
Owen Anderson 2007-11-27 03:33:40 +00:00
parent 20a104c87f
commit 5aad0d7ea2
2 changed files with 8 additions and 4 deletions

View File

@ -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).

View File

@ -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