summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/CFGPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-05 20:24:36 +0000
committerDevang Patel <dpatel@apple.com>2007-06-05 20:24:36 +0000
commita301a168417b326014310b31c9e3ac0ca496cf17 (patch)
treeaecd785772926139388bb9c1c4508702d6984fb7 /lib/Analysis/CFGPrinter.cpp
parente2c0c88e066701761e26b7bbe167657329d2fdfb (diff)
downloadexternal_llvm-a301a168417b326014310b31c9e3ac0ca496cf17.zip
external_llvm-a301a168417b326014310b31c9e3ac0ca496cf17.tar.gz
external_llvm-a301a168417b326014310b31c9e3ac0ca496cf17.tar.bz2
Fix PR 1497
Use separate pass id for CFGOnlyPrinter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFGPrinter.cpp')
-rw-r--r--lib/Analysis/CFGPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp
index cc0f6b4..7466666 100644
--- a/lib/Analysis/CFGPrinter.cpp
+++ b/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;