diff options
author | Devang Patel <dpatel@apple.com> | 2007-06-05 20:24:36 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-06-05 20:24:36 +0000 |
commit | 3e6519e9fa4b8a848cc77d22cc286778964ec4f5 (patch) | |
tree | e8299e4d6c9a13f54eadad68c13780b6996a6e65 | |
parent | 753b63cb5b1acf47a810e980683575190174f763 (diff) | |
download | bcm5719-llvm-3e6519e9fa4b8a848cc77d22cc286778964ec4f5.tar.gz bcm5719-llvm-3e6519e9fa4b8a848cc77d22cc286778964ec4f5.zip |
Fix PR 1497
Use separate pass id for CFGOnlyPrinter.
llvm-svn: 37439
-rw-r--r-- | llvm/lib/Analysis/CFGPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp index cc0f6b43182..74666664d88 100644 --- a/llvm/lib/Analysis/CFGPrinter.cpp +++ b/llvm/lib/Analysis/CFGPrinter.cpp @@ -135,6 +135,7 @@ namespace { 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 @@ namespace { 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; |