Fix namespace polution.
authorDan Gohman <gohman@apple.com>
Mon, 2 Aug 2010 18:50:06 +0000 (18:50 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 2 Aug 2010 18:50:06 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionInfo.cpp
lib/Analysis/RegionPrinter.cpp

index 6f38dcc9681c50a80a265e7b9b59fe0aa9b5e4b8..5c9985223162041907131fa90b109094fa4e8989 100644 (file)
@@ -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>
index c657143da7fa949ee2886ac1269982aa2945e9b2..67ce05a52f3a27ed38a698055dff11c97a0afc3f 100644 (file)
@@ -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 "