diff options
author | Dan Gohman <gohman@apple.com> | 2008-04-23 23:15:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-04-23 23:15:23 +0000 |
commit | c107d0020d5b7276f8b163fdd9fd03f1d2f624b6 (patch) | |
tree | c1b17e3715db36ee9c712408dd6cc7257ec340b4 /llvm/lib/Support/Debug.cpp | |
parent | 05e6267466bb5b869189f51800293be104abd06e (diff) | |
download | bcm5719-llvm-c107d0020d5b7276f8b163fdd9fd03f1d2f624b6.tar.gz bcm5719-llvm-c107d0020d5b7276f8b163fdd9fd03f1d2f624b6.zip |
Make these variables static.
llvm-svn: 50196
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<bool, true> + static cl::opt<bool, true> 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<DebugOnlyOpt, true, cl::parser<std::string> > + static cl::opt<DebugOnlyOpt, true, cl::parser<std::string> > DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"), cl::Hidden, cl::value_desc("debug string"), cl::location(DebugOnlyOptLoc), cl::ValueRequired); |