diff options
author | Owen Anderson <resistor@mac.com> | 2008-05-29 17:00:13 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-05-29 17:00:13 +0000 |
commit | 5771d6c16d71dc3bba59b88592686c76f07f4721 (patch) | |
tree | 7f796d3a895131fa0115faec427669b372b8979e | |
parent | 8cacfebb8e84e559429bd76ee41ff89c4b6589ed (diff) |
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
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 3 | ||||
-rw-r--r-- | include/llvm/LinkAllPasses.h | 2 | ||||
-rw-r--r-- | lib/Analysis/PostDominators.cpp | 8 |
3 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 51b3e807d8..b99fafcfc9 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -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 diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index 96f9eaee17..eaa97b6ae6 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -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(); diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index cfa1b46329..3d3713b11d 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -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(); +}
\ No newline at end of file |