aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/RegionPrinter.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-07 04:13:08 +0000
committerOwen Anderson <resistor@mac.com>2010-10-07 04:13:08 +0000
commit71802344fcb224a89e4e636c1ec47f3730969be7 (patch)
treedd6cb671c0f1fb2cfa5cc92900291995616b1c01 /lib/Analysis/RegionPrinter.cpp
parent5a50ceeaea980962c1982ad535226c7ab06c971c (diff)
downloadexternal_llvm-71802344fcb224a89e4e636c1ec47f3730969be7.zip
external_llvm-71802344fcb224a89e4e636c1ec47f3730969be7.tar.gz
external_llvm-71802344fcb224a89e4e636c1ec47f3730969be7.tar.bz2
Move the pass initialization helper functions into the llvm namespace, and add
a header declaring them all. This is also where we will declare per-library pass-set initializer functions down the road. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionPrinter.cpp')
-rw-r--r--lib/Analysis/RegionPrinter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Analysis/RegionPrinter.cpp b/lib/Analysis/RegionPrinter.cpp
index fee5c1b..f39a08c 100644
--- a/lib/Analysis/RegionPrinter.cpp
+++ b/lib/Analysis/RegionPrinter.cpp
@@ -123,21 +123,14 @@ struct RegionViewer
static char ID;
RegionViewer() : DOTGraphTraitsViewer<RegionInfo, false>("reg", ID){}
};
-
char RegionViewer::ID = 0;
-INITIALIZE_PASS(RegionViewer, "view-regions", "View regions of function",
- true, true);
struct RegionOnlyViewer
: public DOTGraphTraitsViewer<RegionInfo, true> {
static char ID;
RegionOnlyViewer() : DOTGraphTraitsViewer<RegionInfo, true>("regonly", ID){}
};
-
char RegionOnlyViewer::ID = 0;
-INITIALIZE_PASS(RegionOnlyViewer, "view-regions-only",
- "View regions of function (with no function bodies)",
- true, true);
struct RegionPrinter
: public DOTGraphTraitsPrinter<RegionInfo, false> {
@@ -145,12 +138,19 @@ struct RegionPrinter
RegionPrinter() :
DOTGraphTraitsPrinter<RegionInfo, false>("reg", ID) {}
};
+char RegionPrinter::ID = 0;
} //end anonymous namespace
-char RegionPrinter::ID = 0;
INITIALIZE_PASS(RegionPrinter, "dot-regions",
"Print regions of function to 'dot' file", true, true);
+INITIALIZE_PASS(RegionViewer, "view-regions", "View regions of function",
+ true, true);
+
+INITIALIZE_PASS(RegionOnlyViewer, "view-regions-only",
+ "View regions of function (with no function bodies)",
+ true, true);
+
namespace {
struct RegionOnlyPrinter