From 28717a8a60e6877eda842944393efa4c0ad2e006 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 18 Oct 2009 04:27:14 +0000 Subject: [PATCH] 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 --- lib/Analysis/DomPrinter.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/Analysis/DomPrinter.cpp b/lib/Analysis/DomPrinter.cpp index f7918177cca..82e13a9ef26 100644 --- a/lib/Analysis/DomPrinter.cpp +++ b/lib/Analysis/DomPrinter.cpp @@ -78,11 +78,9 @@ struct DOTGraphTraits namespace { template 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 { static char ID; - DomViewer() : GenericGraphViewer("dom"){} + DomViewer() : GenericGraphViewer("dom", &ID){} }; struct DomOnlyViewer : public GenericGraphViewer { static char ID; - DomOnlyViewer() : GenericGraphViewer("domonly"){} + DomOnlyViewer() : GenericGraphViewer("domonly", &ID){} }; struct PostDomViewer : public GenericGraphViewer { static char ID; PostDomViewer() : - GenericGraphViewer("postdom"){} + GenericGraphViewer("postdom", &ID){} }; struct PostDomOnlyViewer : public GenericGraphViewer { static char ID; PostDomOnlyViewer() : - GenericGraphViewer("postdomonly"){} + GenericGraphViewer("postdomonly", &ID){} }; } // end anonymous namespace -- 2.34.1