diff options
author | Devang Patel <dpatel@apple.com> | 2007-05-02 21:39:20 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-05-02 21:39:20 +0000 |
commit | e95c6ad8024975432162aef11918e7c06e0d207c (patch) | |
tree | b4f05c01174c5742dd7c3bdb67e5a89d05c10020 /llvm/lib/VMCore/Dominators.cpp | |
parent | 700a0381b51dddf28002b8b5044ffdd44bfe0234 (diff) | |
download | bcm5719-llvm-e95c6ad8024975432162aef11918e7c06e0d207c.tar.gz bcm5719-llvm-e95c6ad8024975432162aef11918e7c06e0d207c.zip |
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
llvm-svn: 36652
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
-rw-r--r-- | llvm/lib/VMCore/Dominators.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index 905b56ee63e..f1d655fd24a 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/lib/VMCore/Dominators.cpp @@ -58,7 +58,7 @@ static std::ostream &operator<<(std::ostream &o, // //===----------------------------------------------------------------------===// -const int DominatorTree::ID = 0; +const char DominatorTree::ID = 0; static RegisterPass<DominatorTree> E("domtree", "Dominator Tree Construction", true); @@ -354,7 +354,7 @@ bool DominatorTree::runOnFunction(Function &F) { // DominanceFrontier Implementation //===----------------------------------------------------------------------===// -const int DominanceFrontier::ID = 0; +const char DominanceFrontier::ID = 0; static RegisterPass<DominanceFrontier> G("domfrontier", "Dominance Frontier Construction", true); @@ -835,7 +835,7 @@ void ETNode::assignDFSNumber(int num) { // ETForest implementation //===----------------------------------------------------------------------===// -const int ETForest::ID = 0; +const char ETForest::ID = 0; static RegisterPass<ETForest> D("etforest", "ET Forest Construction", true); |