Fix a bunch of namespace polution.

llvm-svn: 101376
This commit is contained in:
Dan Gohman
2010-04-15 17:08:50 +00:00
parent 345356ee9a
commit b29cda9b3c
15 changed files with 54 additions and 24 deletions

View File

@@ -51,12 +51,19 @@ DebugBufferSize("debug-buffer-size",
cl::init(0));
static std::string CurrentDebugType;
static struct DebugOnlyOpt {
namespace {
struct DebugOnlyOpt {
void operator=(const std::string &Val) const {
DebugFlag |= !Val.empty();
CurrentDebugType = Val;
}
} DebugOnlyOptLoc;
};
}
static DebugOnlyOpt DebugOnlyOptLoc;
static cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >
DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"),