diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-15 17:08:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-15 17:08:50 +0000 |
commit | b29cda9b3c39fbbd53db44dbc5075d5445a98200 (patch) | |
tree | b858a95e9c0cad74c71661ecada32e5fdbd6041a /llvm/lib/Support/Debug.cpp | |
parent | 345356ee9a30b0d7653219e1d97e60c5cd116241 (diff) | |
download | bcm5719-llvm-b29cda9b3c39fbbd53db44dbc5075d5445a98200.tar.gz bcm5719-llvm-b29cda9b3c39fbbd53db44dbc5075d5445a98200.zip |
Fix a bunch of namespace polution.
llvm-svn: 101376
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index eccfa0bd072..7f48f8aae71 100644 --- a/llvm/lib/Support/Debug.cpp +++ b/llvm/lib/Support/Debug.cpp @@ -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"), |