diff options
author | Junmo Park <junmoz.park@samsung.com> | 2017-03-28 04:14:25 +0000 |
---|---|---|
committer | Junmo Park <junmoz.park@samsung.com> | 2017-03-28 04:14:25 +0000 |
commit | c7479ba86a6daf19e408610204fb55d79d37abc9 (patch) | |
tree | 926da7720b6a290decf440630e8445b82e3fab9e /llvm/lib/CodeGen/InlineSpiller.cpp | |
parent | f496f9a27304f72e11f2514b99f41a99991bc66b (diff) | |
download | bcm5719-llvm-c7479ba86a6daf19e408610204fb55d79d37abc9.tar.gz bcm5719-llvm-c7479ba86a6daf19e408610204fb55d79d37abc9.zip |
CodeGen : Check LLVM_ENABLE_DUMP definition for dumpMachineInstrRangeWithSlotIndex.
Summary:
Add missing check routine for dumpMachineInstrRangeWithSlotIndex including LLVM_DUMP_METHOD.
Reviewers: bkramer
Differential revision: https://reviews.llvm.org/D30367
llvm-svn: 298895
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index 24bc15e47c5..a1cb0a0695b 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -686,7 +686,8 @@ bool InlineSpiller::coalesceStackAccess(MachineInstr *MI, unsigned Reg) { return true; } -#if !defined(NDEBUG) +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) +LLVM_DUMP_METHOD // Dump the range of instructions from B to E with their slot indexes. static void dumpMachineInstrRangeWithSlotIndex(MachineBasicBlock::iterator B, MachineBasicBlock::iterator E, |