[PATCH] D30367: CodeGen : Check LLVM_ENABLE_DUMP definition for dumpMachineInstrRangeWithSlotIndex.

Junmo Park via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 18:13:21 PST 2017


flyingforyou created this revision.
Herald added a subscriber: qcolombet.

Add missing check routine for dumpMachineInstrRangeWithSlotIndex.


https://reviews.llvm.org/D30367

Files:
  lib/CodeGen/InlineSpiller.cpp


Index: lib/CodeGen/InlineSpiller.cpp
===================================================================
--- lib/CodeGen/InlineSpiller.cpp
+++ lib/CodeGen/InlineSpiller.cpp
@@ -686,7 +686,7 @@
   return true;
 }
 
-#if !defined(NDEBUG)
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
 // Dump the range of instructions from B to E with their slot indexes.
 static void dumpMachineInstrRangeWithSlotIndex(MachineBasicBlock::iterator B,
                                                MachineBasicBlock::iterator E,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30367.89762.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170225/67a0e288/attachment.bin>


More information about the llvm-commits mailing list