summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
parente4e9e8e6e7b5fd208630929f68c8c10518d883c0 (diff)
downloadbcm5719-llvm-abfafadfc7b1d0996cd483728c1815d844258ca6.tar.gz
bcm5719-llvm-abfafadfc7b1d0996cd483728c1815d844258ca6.zip
Fix namespace polution.
llvm-svn: 110056
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/RegionInfo.cpp4
-rw-r--r--llvm/lib/Analysis/RegionPrinter.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/RegionInfo.cpp b/llvm/lib/Analysis/RegionInfo.cpp
index 6f38dcc9681..5c998522316 100644
--- a/llvm/lib/Analysis/RegionInfo.cpp
+++ b/llvm/lib/Analysis/RegionInfo.cpp
@@ -29,9 +29,9 @@ using namespace llvm;
// Always verify if expensive checking is enabled.
#ifdef XDEBUG
-bool VerifyRegionInfo = true;
+static bool VerifyRegionInfo = true;
#else
-bool VerifyRegionInfo = false;
+static bool VerifyRegionInfo = false;
#endif
static cl::opt<bool,true>
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