mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Fix a bunch of namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101376 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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"),
|
||||
|
Reference in New Issue
Block a user