Fix namespace polution.

llvm-svn: 110056
This commit is contained in:
Dan Gohman 2010-08-02 18:50:06 +00:00
parent 555c1105a5
commit 213f64b54c
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 "