summaryrefslogtreecommitdiff
path: root/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-14 21:35:53 +0000
committerChris Lattner <sabre@nondot.org>2003-12-14 21:35:53 +0000
commit2cdd21c2e4d855500dfb53f77aa74da53ccf9de6 (patch)
tree98803f88a663bba4b7955f121b58306f5ae11d85 /lib/Support/Debug.cpp
parentb6d465f8131f5fb0b8e565685fb3395ed9aecbdb (diff)
downloadllvm-2cdd21c2e4d855500dfb53f77aa74da53ccf9de6.tar.gz
llvm-2cdd21c2e4d855500dfb53f77aa74da53ccf9de6.tar.bz2
llvm-2cdd21c2e4d855500dfb53f77aa74da53ccf9de6.tar.xz
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Debug.cpp')
-rw-r--r--lib/Support/Debug.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp
index 1af23380a2..f171342949 100644
--- a/lib/Support/Debug.cpp
+++ b/lib/Support/Debug.cpp
@@ -23,12 +23,11 @@
//
//===----------------------------------------------------------------------===//
-#include "Support/Statistic.h"
+#include "Support/Debug.h"
#include "Support/CommandLine.h"
+using namespace llvm;
-namespace llvm {
-
-bool DebugFlag; // DebugFlag - Exported boolean set by the -debug option
+bool llvm::DebugFlag; // DebugFlag - Exported boolean set by the -debug option
namespace {
#ifndef NDEBUG
@@ -57,12 +56,10 @@ namespace {
// specified on the command line, or if none was specified on the command line
// with the -debug-only=X option.
//
-bool isCurrentDebugType(const char *DebugType) {
+bool llvm::isCurrentDebugType(const char *DebugType) {
#ifndef NDEBUG
return CurrentDebugType.empty() || DebugType == CurrentDebugType;
#else
return false;
#endif
}
-
-} // End llvm namespace