From: Dan Gohman Date: Mon, 2 Aug 2010 18:50:06 +0000 (+0000) Subject: Fix namespace polution. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=811edc1f1a0672d28cd7c938e478a92543e68a51;p=oota-llvm.git Fix namespace polution. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110056 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/RegionInfo.cpp b/lib/Analysis/RegionInfo.cpp index 6f38dcc9681..5c998522316 100644 --- a/lib/Analysis/RegionInfo.cpp +++ b/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 diff --git a/lib/Analysis/RegionPrinter.cpp b/lib/Analysis/RegionPrinter.cpp index c657143da7f..67ce05a52f3 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 { static char ID; @@ -158,6 +160,8 @@ struct RegionOnlyPrinter DOTGraphTraitsPrinter("reg", &ID) {} }; +} + char RegionOnlyPrinter::ID = 0; INITIALIZE_PASS(RegionOnlyPrinter, "dot-regions-only", "Print regions of function to 'dot' file "