Force postdom to be linked into opt and bugpoint, even though it is no longer used by any passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-05-29 17:00:13 +00:00
parent 8cacfebb8e
commit 5771d6c16d
3 changed files with 13 additions and 0 deletions

View File

@ -62,6 +62,7 @@ struct PostDominatorTree : public FunctionPass {
}
};
FunctionPass* createPostDomTree();
/// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
/// used to compute the a post-dominance frontier.
@ -90,6 +91,8 @@ private:
const DomTreeNode *Node);
};
FunctionPass* createPostDomFrontier();
} // End llvm namespace
#endif

View File

@ -116,6 +116,8 @@ namespace {
(void) llvm::createGVNPass();
(void) llvm::createMemCpyOptPass();
(void) llvm::createLoopDeletionPass();
(void) llvm::createPostDomTree();
(void) llvm::createPostDomFrontier();
(void)new llvm::IntervalPartition();
(void)new llvm::FindUsedTypes();

View File

@ -42,6 +42,10 @@ PostDominatorTree::~PostDominatorTree()
delete DT;
}
FunctionPass* llvm::createPostDomTree() {
return new PostDominatorTree();
}
//===----------------------------------------------------------------------===//
// PostDominanceFrontier Implementation
//===----------------------------------------------------------------------===//
@ -84,3 +88,7 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
return S;
}
FunctionPass* llvm::createPostDomFrontier() {
return new PostDominanceFrontier();
}