aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorDon Hinton <hintonda@gmail.com>2017-09-27 21:19:56 +0000
committerDon Hinton <hintonda@gmail.com>2017-09-27 21:19:56 +0000
commit53eb6371159ff20ff9f69727977b48219ca7237a (patch)
tree6027d4d21499d2ecf81b479158eb91e59e876ac4 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent23fa4de2db9e7e377d43abf44b8731aa7a16eb5b (diff)
downloadllvm-53eb6371159ff20ff9f69727977b48219ca7237a.zip
llvm-53eb6371159ff20ff9f69727977b48219ca7237a.tar.gz
llvm-53eb6371159ff20ff9f69727977b48219ca7237a.tar.bz2
Cleanup some problems with LLVM_ENABLE_DUMP in release builds, and
always set LLVM_ENABLE_DUMP=ON for +Asserts builds. Differential Revision: https://reviews.llvm.org/D38306 llvm-svn: 314346
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 37ff30a..9a82e3c 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -355,7 +355,7 @@ public:
} // end anonymous namespace
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
const LLVMContext &Ctx) {
if (!DL)