diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-10-18 04:58:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-10-18 04:58:34 +0000 |
| commit | f4591d9a72f8eac0b2f1048ce7f4af4226ed3e59 (patch) | |
| tree | e25ee99a7b346d2a80ae3764a055f47fefbda703 | |
| parent | d2b3a4f7b8e89a3684c949c7a7b52c32f1fa75f3 (diff) | |
| download | bcm5719-llvm-f4591d9a72f8eac0b2f1048ce7f4af4226ed3e59.tar.gz bcm5719-llvm-f4591d9a72f8eac0b2f1048ce7f4af4226ed3e59.zip | |
fix the other issue with ID's, hopefully really fixing the linux build.
llvm-svn: 84403
| -rw-r--r-- | llvm/lib/Analysis/DomPrinter.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/DomPrinter.cpp b/llvm/lib/Analysis/DomPrinter.cpp index 82e13a9ef26..f1b44d0356e 100644 --- a/llvm/lib/Analysis/DomPrinter.cpp +++ b/llvm/lib/Analysis/DomPrinter.cpp @@ -19,7 +19,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Analysis/DomPrinter.h" - #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/Analysis/CFGPrinter.h" @@ -148,10 +147,10 @@ namespace { template <class Analysis, bool OnlyBBS> struct GenericGraphPrinter : public FunctionPass { - static char ID; std::string Name; - GenericGraphPrinter(std::string GraphName) : FunctionPass(&ID) { + GenericGraphPrinter(std::string GraphName, const void *ID) + : FunctionPass(ID) { Name = GraphName; } @@ -181,27 +180,27 @@ struct GenericGraphPrinter : public FunctionPass { struct DomPrinter : public GenericGraphPrinter<DominatorTree, false> { static char ID; - DomPrinter() : GenericGraphPrinter<DominatorTree, false>("dom"){} + DomPrinter() : GenericGraphPrinter<DominatorTree, false>("dom", &ID) {} }; struct DomOnlyPrinter : public GenericGraphPrinter<DominatorTree, true> { static char ID; - DomOnlyPrinter() : GenericGraphPrinter<DominatorTree, true>("domonly"){} + DomOnlyPrinter() : GenericGraphPrinter<DominatorTree, true>("domonly", &ID) {} }; struct PostDomPrinter : public GenericGraphPrinter<PostDominatorTree, false> { static char ID; PostDomPrinter() : - GenericGraphPrinter<PostDominatorTree, false>("postdom"){} + GenericGraphPrinter<PostDominatorTree, false>("postdom", &ID) {} }; struct PostDomOnlyPrinter : public GenericGraphPrinter<PostDominatorTree, true> { static char ID; PostDomOnlyPrinter() : - GenericGraphPrinter<PostDominatorTree, true>("postdomonly"){} + GenericGraphPrinter<PostDominatorTree, true>("postdomonly", &ID) {} }; } // end anonymous namespace |

