diff options
| author | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-12 04:08:32 +0000 |
|---|---|---|
| committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-12 04:08:32 +0000 |
| commit | 37fa76624c9c11ec6745b5b609a8b537f0cd8425 (patch) | |
| tree | b36d1d3e4ca3bb22dfa168b8d133a32dbaecc7ae /include/llvm/Support/ErrorHandling.h | |
| parent | 241896971376c9bf4b5856c44c65084c8bf6e3cb (diff) | |
| download | external_llvm-37fa76624c9c11ec6745b5b609a8b537f0cd8425.zip external_llvm-37fa76624c9c11ec6745b5b609a8b537f0cd8425.tar.gz external_llvm-37fa76624c9c11ec6745b5b609a8b537f0cd8425.tar.bz2 | |
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/ErrorHandling.h')
| -rw-r--r-- | include/llvm/Support/ErrorHandling.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h index 6067795..4d24ada 100644 --- a/include/llvm/Support/ErrorHandling.h +++ b/include/llvm/Support/ErrorHandling.h @@ -79,9 +79,10 @@ namespace llvm { /// Use this instead of assert(0), so that the compiler knows this path /// is not reachable even for NDEBUG builds. #ifndef NDEBUG -#define llvm_unreachable(msg) llvm_unreachable_internal(msg, __FILE__, __LINE__) +#define llvm_unreachable(msg) \ + ::llvm::llvm_unreachable_internal(msg, __FILE__, __LINE__) #else -#define llvm_unreachable(msg) llvm_unreachable_internal() +#define llvm_unreachable(msg) ::llvm::llvm_unreachable_internal() #endif #endif |
