summaryrefslogtreecommitdiff
path: root/lib/Analysis/Trace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/Trace.cpp')
-rw-r--r--lib/Analysis/Trace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Trace.cpp b/lib/Analysis/Trace.cpp
index bd2f2024410..34c998501a6 100644
--- a/lib/Analysis/Trace.cpp
+++ b/lib/Analysis/Trace.cpp
@@ -44,7 +44,7 @@ void Trace::print(raw_ostream &O) const {
O << "; Trace parent function: \n" << *F;
}
-#ifdef LLVM_ENABLE_DUMP
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
/// dump - Debugger convenience method; writes trace to standard error
/// output stream.
LLVM_DUMP_METHOD void Trace::dump() const {