summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/RegionPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-02 18:50:06 +0000
committerDan Gohman <gohman@apple.com>2010-08-02 18:50:06 +0000
commitabfafadfc7b1d0996cd483728c1815d844258ca6 (patch)
treec58697433d6f37d95c17ab348413cc75f6d2be6c /llvm/lib/Analysis/RegionPrinter.cpp
parente4e9e8e6e7b5fd208630929f68c8c10518d883c0 (diff)
downloadbcm5719-llvm-abfafadfc7b1d0996cd483728c1815d844258ca6.tar.gz
bcm5719-llvm-abfafadfc7b1d0996cd483728c1815d844258ca6.zip
Fix namespace polution.
llvm-svn: 110056
Diffstat (limited to 'llvm/lib/Analysis/RegionPrinter.cpp')
-rw-r--r--llvm/lib/Analysis/RegionPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/RegionPrinter.cpp b/llvm/lib/Analysis/RegionPrinter.cpp
index c657143da7f..67ce05a52f3 100644
--- a/llvm/lib/Analysis/RegionPrinter.cpp
+++ b/llvm/lib/Analysis/RegionPrinter.cpp
@@ -151,6 +151,8 @@ char RegionPrinter::ID = 0;
INITIALIZE_PASS(RegionPrinter, "dot-regions",
"Print regions of function to 'dot' file", true, true);
+namespace {
+
struct RegionOnlyPrinter
: public DOTGraphTraitsPrinter<RegionInfo, true> {
static char ID;
@@ -158,6 +160,8 @@ struct RegionOnlyPrinter
DOTGraphTraitsPrinter<RegionInfo, true>("reg", &ID) {}
};
+}
+
char RegionOnlyPrinter::ID = 0;
INITIALIZE_PASS(RegionOnlyPrinter, "dot-regions-only",
"Print regions of function to 'dot' file "
OpenPOWER on IntegriCloud