]> granicus.if.org Git - llvm/commitdiff
CodeGen : Check LLVM_ENABLE_DUMP definition for dumpMachineInstrRangeWithSlotIndex.
authorJunmo Park <junmoz.park@samsung.com>
Tue, 28 Mar 2017 04:14:25 +0000 (04:14 +0000)
committerJunmo Park <junmoz.park@samsung.com>
Tue, 28 Mar 2017 04:14:25 +0000 (04:14 +0000)
Summary:
Add missing check routine for dumpMachineInstrRangeWithSlotIndex including LLVM_DUMP_METHOD.

Reviewers: bkramer

Differential revision: https://reviews.llvm.org/D30367

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298895 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InlineSpiller.cpp

index 24bc15e47c5408f60feb99d719d22be97e301414..a1cb0a0695bfa85a75934546a3a4873ded3d35ad 100644 (file)
@@ -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,