summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 17:08:50 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 17:08:50 +0000
commitb29cda9b3c39fbbd53db44dbc5075d5445a98200 (patch)
treeb858a95e9c0cad74c71661ecada32e5fdbd6041a /llvm/lib/Support/Debug.cpp
parent345356ee9a30b0d7653219e1d97e60c5cd116241 (diff)
downloadbcm5719-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.cpp11
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"),
OpenPOWER on IntegriCloud