diff options
| author | Don Hinton <hintonda@gmail.com> | 2017-09-27 21:19:56 +0000 |
|---|---|---|
| committer | Don Hinton <hintonda@gmail.com> | 2017-09-27 21:19:56 +0000 |
| commit | 53eb6371159ff20ff9f69727977b48219ca7237a (patch) | |
| tree | 6027d4d21499d2ecf81b479158eb91e59e876ac4 /llvm/lib | |
| parent | 23fa4de2db9e7e377d43abf44b8731aa7a16eb5b (diff) | |
| download | bcm5719-llvm-53eb6371159ff20ff9f69727977b48219ca7237a.tar.gz bcm5719-llvm-53eb6371159ff20ff9f69727977b48219ca7237a.zip | |
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')
| -rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 37ff30a92a0..9a82e3c42dd 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) diff --git a/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp b/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp index b3d83d5313a..e2cb8cad6e1 100644 --- a/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp +++ b/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp @@ -32,6 +32,7 @@ ScoreboardHazardRecognizer::ScoreboardHazardRecognizer( const char *ParentDebugType) : ScheduleHazardRecognizer(), DebugType(ParentDebugType), ItinData(II), DAG(SchedDAG) { + (void)DebugType; // Determine the maximum depth of any itinerary. This determines the depth of // the scoreboard. We always make the scoreboard at least 1 cycle deep to // avoid dealing with the boundary condition. |

