mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
eliminate the std::ostream form of WriteAsOperand and update clients.
This also updates dominator related stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -33,15 +33,20 @@ F("postdomtree", "Post-Dominator Tree Construction", true, true);
|
||||
|
||||
bool PostDominatorTree::runOnFunction(Function &F) {
|
||||
DT->recalculate(F);
|
||||
DEBUG(DT->dump());
|
||||
DEBUG(DT->print(errs()));
|
||||
return false;
|
||||
}
|
||||
|
||||
PostDominatorTree::~PostDominatorTree()
|
||||
{
|
||||
PostDominatorTree::~PostDominatorTree() {
|
||||
delete DT;
|
||||
}
|
||||
|
||||
void PostDominatorTree::print(std::ostream &OS, const Module *) const {
|
||||
raw_os_ostream OSS(OS);
|
||||
DT->print(OSS);
|
||||
}
|
||||
|
||||
|
||||
FunctionPass* llvm::createPostDomTree() {
|
||||
return new PostDominatorTree();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user