summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Debug.h
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-12-12 04:08:32 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-12-12 04:08:32 +0000
commit66b856683fb67796aa77e52d676c4739e8e47d6d (patch)
treeb36d1d3e4ca3bb22dfa168b8d133a32dbaecc7ae /include/llvm/Support/Debug.h
parente801dc4a7b89f68f40ff2753de988c482d4d117f (diff)
downloadllvm-66b856683fb67796aa77e52d676c4739e8e47d6d.tar.gz
llvm-66b856683fb67796aa77e52d676c4739e8e47d6d.tar.bz2
llvm-66b856683fb67796aa77e52d676c4739e8e47d6d.tar.xz
Make it easier to use the llvm_unreachable and DEBUG macros without "using
namespace llvm" by qualifying their implementations with ::llvm::. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Debug.h')
-rw-r--r--include/llvm/Support/Debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h
index afa828c369..e8bc0ce0a2 100644
--- a/include/llvm/Support/Debug.h
+++ b/include/llvm/Support/Debug.h
@@ -63,7 +63,8 @@ void SetCurrentDebugType(const char *Type);
/// This will emit the debug information if -debug is present, and -debug-only
/// is not specified, or is specified as "bitset".
#define DEBUG_WITH_TYPE(TYPE, X) \
- do { if (DebugFlag && isCurrentDebugType(TYPE)) { X; } } while (0)
+ do { if (::llvm::DebugFlag && ::llvm::isCurrentDebugType(TYPE)) { X; } \
+ } while (0)
#else
#define isCurrentDebugType(X) (false)