aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit811edc1f1a0672d28cd7c938e478a92543e68a51 (patch)
tree2cc79bdde063e734c1a519f84d4aacdc7358a5a5 /lib/Analysis/RegionPrinter.cpp
parent8766b125a7e6a54dafa600e4df61598e6f775911 (diff)
downloadexternal_llvm-811edc1f1a0672d28cd7c938e478a92543e68a51.zip
external_llvm-811edc1f1a0672d28cd7c938e478a92543e68a51.tar.gz
external_llvm-811edc1f1a0672d28cd7c938e478a92543e68a51.tar.bz2
Fix namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionPrinter.cpp')
-rw-r--r--lib/Analysis/RegionPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/RegionPrinter.cpp b/lib/Analysis/RegionPrinter.cpp
index c657143..67ce05a 100644
--- a/lib/Analysis/RegionPrinter.cpp
+++ b/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 "