diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-18 04:27:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-18 04:27:14 +0000 |
commit | 28717a8a60e6877eda842944393efa4c0ad2e006 (patch) | |
tree | 64d79713a0ad0c833fd0ac9bf14b56a1c0f74710 /lib/Analysis/DomPrinter.cpp | |
parent | b839c5577d8ecb884ffb6874a14782797faec9c4 (diff) |
fix some problems with ID definitions, which will hopefully fix the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DomPrinter.cpp')
-rw-r--r-- | lib/Analysis/DomPrinter.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Analysis/DomPrinter.cpp b/lib/Analysis/DomPrinter.cpp index f7918177cc..82e13a9ef2 100644 --- a/lib/Analysis/DomPrinter.cpp +++ b/lib/Analysis/DomPrinter.cpp @@ -78,11 +78,9 @@ struct DOTGraphTraits<PostDominatorTree*> namespace { template <class Analysis, bool OnlyBBS> struct GenericGraphViewer : public FunctionPass { - - static char ID; std::string Name; - GenericGraphViewer(std::string GraphName) : FunctionPass(&ID) { + GenericGraphViewer(std::string GraphName, const void *ID) : FunctionPass(ID) { Name = GraphName; } @@ -104,27 +102,27 @@ struct GenericGraphViewer : public FunctionPass { struct DomViewer : public GenericGraphViewer<DominatorTree, false> { static char ID; - DomViewer() : GenericGraphViewer<DominatorTree, false>("dom"){} + DomViewer() : GenericGraphViewer<DominatorTree, false>("dom", &ID){} }; struct DomOnlyViewer : public GenericGraphViewer<DominatorTree, true> { static char ID; - DomOnlyViewer() : GenericGraphViewer<DominatorTree, true>("domonly"){} + DomOnlyViewer() : GenericGraphViewer<DominatorTree, true>("domonly", &ID){} }; struct PostDomViewer : public GenericGraphViewer<PostDominatorTree, false> { static char ID; PostDomViewer() : - GenericGraphViewer<PostDominatorTree, false>("postdom"){} + GenericGraphViewer<PostDominatorTree, false>("postdom", &ID){} }; struct PostDomOnlyViewer : public GenericGraphViewer<PostDominatorTree, true> { static char ID; PostDomOnlyViewer() : - GenericGraphViewer<PostDominatorTree, true>("postdomonly"){} + GenericGraphViewer<PostDominatorTree, true>("postdomonly", &ID){} }; } // end anonymous namespace |