From b35798347ea87b8b6d36155b211016a7769f01ab Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 15 Apr 2010 17:08:50 +0000 Subject: Fix a bunch of namespace polution. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101376 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Debug.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/Support/Debug.cpp') diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index eccfa0bd07..7f48f8aae7 100644 --- a/lib/Support/Debug.cpp +++ b/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 > DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"), -- cgit v1.2.3-18-g5258