Changes in directory llvm/lib/Analysis:
CFGPrinter.cpp updated: 1.27 -> 1.28 --- Log message: Fix PR 1497: http://llvm.org/PR1497 Use separate pass id for CFGOnlyPrinter. --- Diffs of the changes: (+2 -0) CFGPrinter.cpp | 2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Analysis/CFGPrinter.cpp diff -u llvm/lib/Analysis/CFGPrinter.cpp:1.27 llvm/lib/Analysis/CFGPrinter.cpp:1.28 --- llvm/lib/Analysis/CFGPrinter.cpp:1.27 Mon May 14 09:25:08 2007 +++ llvm/lib/Analysis/CFGPrinter.cpp Tue Jun 5 15:24:36 2007 @@ -135,6 +135,7 @@ struct VISIBILITY_HIDDEN CFGPrinter : public FunctionPass { static char ID; // Pass identification, replacement for typeid CFGPrinter() : FunctionPass((intptr_t)&ID) {} + CFGPrinter(intptr_t pid) : FunctionPass(pid) {} virtual bool runOnFunction(Function &F) { std::string Filename = "cfg." + F.getName() + ".dot"; @@ -162,6 +163,7 @@ struct VISIBILITY_HIDDEN CFGOnlyPrinter : public CFGPrinter { static char ID; // Pass identification, replacement for typeid + CFGOnlyPrinter() : CFGPrinter((intptr_t)&ID) {} virtual bool runOnFunction(Function &F) { bool OldCFGOnly = CFGOnly; CFGOnly = true; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits