[llvm-commits] [llvm] r51686 - in /llvm/trunk: include/llvm/Analysis/PostDominators.h include/llvm/LinkAllPasses.h lib/Analysis/PostDominators.cpp
Owen Anderson
resistor at mac.com
Thu May 29 10:00:13 PDT 2008
Author: resistor
Date: Thu May 29 12:00:13 2008
New Revision: 51686
URL: http://llvm.org/viewvc/llvm-project?rev=51686&view=rev
Log:
Force postdom to be linked into opt and bugpoint, even though it is no longer used by any passes.
Modified:
llvm/trunk/include/llvm/Analysis/PostDominators.h
llvm/trunk/include/llvm/LinkAllPasses.h
llvm/trunk/lib/Analysis/PostDominators.cpp
Modified: llvm/trunk/include/llvm/Analysis/PostDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/PostDominators.h?rev=51686&r1=51685&r2=51686&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/PostDominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/PostDominators.h Thu May 29 12:00:13 2008
@@ -62,6 +62,7 @@
}
};
+FunctionPass* createPostDomTree();
/// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
/// used to compute the a post-dominance frontier.
@@ -90,6 +91,8 @@
const DomTreeNode *Node);
};
+FunctionPass* createPostDomFrontier();
+
} // End llvm namespace
#endif
Modified: llvm/trunk/include/llvm/LinkAllPasses.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LinkAllPasses.h?rev=51686&r1=51685&r2=51686&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LinkAllPasses.h (original)
+++ llvm/trunk/include/llvm/LinkAllPasses.h Thu May 29 12:00:13 2008
@@ -116,6 +116,8 @@
(void) llvm::createGVNPass();
(void) llvm::createMemCpyOptPass();
(void) llvm::createLoopDeletionPass();
+ (void) llvm::createPostDomTree();
+ (void) llvm::createPostDomFrontier();
(void)new llvm::IntervalPartition();
(void)new llvm::FindUsedTypes();
Modified: llvm/trunk/lib/Analysis/PostDominators.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/PostDominators.cpp?rev=51686&r1=51685&r2=51686&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/PostDominators.cpp (original)
+++ llvm/trunk/lib/Analysis/PostDominators.cpp Thu May 29 12:00:13 2008
@@ -42,6 +42,10 @@
delete DT;
}
+FunctionPass* llvm::createPostDomTree() {
+ return new PostDominatorTree();
+}
+
//===----------------------------------------------------------------------===//
// PostDominanceFrontier Implementation
//===----------------------------------------------------------------------===//
@@ -84,3 +88,7 @@
return S;
}
+
+FunctionPass* llvm::createPostDomFrontier() {
+ return new PostDominanceFrontier();
+}
\ No newline at end of file
More information about the llvm-commits
mailing list