[llvm-commits] [llvm] r84403 - /llvm/trunk/lib/Analysis/DomPrinter.cpp
Chris Lattner
sabre at nondot.org
Sat Oct 17 21:58:34 PDT 2009
Author: lattner
Date: Sat Oct 17 23:58:34 2009
New Revision: 84403
URL: http://llvm.org/viewvc/llvm-project?rev=84403&view=rev
Log:
fix the other issue with ID's, hopefully really fixing the linux build.
Modified:
llvm/trunk/lib/Analysis/DomPrinter.cpp
Modified: llvm/trunk/lib/Analysis/DomPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DomPrinter.cpp?rev=84403&r1=84402&r2=84403&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DomPrinter.cpp (original)
+++ llvm/trunk/lib/Analysis/DomPrinter.cpp Sat Oct 17 23:58:34 2009
@@ -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 @@
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 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
More information about the llvm-commits
mailing list