From c107d0020d5b7276f8b163fdd9fd03f1d2f624b6 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 23 Apr 2008 23:15:23 +0000 Subject: Make these variables static. llvm-svn: 50196 --- llvm/lib/Support/Debug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Support/Debug.cpp') diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index 29eda26c689..a09cddf9022 100644 --- a/llvm/lib/Support/Debug.cpp +++ b/llvm/lib/Support/Debug.cpp @@ -33,19 +33,19 @@ namespace { #ifndef NDEBUG // -debug - Command line option to enable the DEBUG statements in the passes. // This flag may only be enabled in debug builds. - cl::opt + static cl::opt Debug("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag)); - std::string CurrentDebugType; - struct DebugOnlyOpt { + static std::string CurrentDebugType; + static struct DebugOnlyOpt { void operator=(const std::string &Val) const { DebugFlag |= !Val.empty(); CurrentDebugType = Val; } } DebugOnlyOptLoc; - cl::opt > + static cl::opt > DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"), cl::Hidden, cl::value_desc("debug string"), cl::location(DebugOnlyOptLoc), cl::ValueRequired); -- cgit v1.2.3