Fix namespace polution.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-08-02 18:50:06 +00:00
parent 8766b125a7
commit 811edc1f1a
2 changed files with 6 additions and 2 deletions

View 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>

View 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 "