[llvm-branch-commits] [llvm-branch] r167845 - /llvm/branches/R600/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Tom Stellard
thomas.stellard at amd.com
Tue Nov 13 07:22:16 PST 2012
Author: tstellar
Date: Tue Nov 13 09:22:16 2012
New Revision: 167845
URL: http://llvm.org/viewvc/llvm-project?rev=167845&view=rev
Log:
AMDGPU: Fix builds with -DNDEBUG
Modified:
llvm/branches/R600/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Modified: llvm/branches/R600/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp?rev=167845&r1=167844&r2=167845&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp Tue Nov 13 09:22:16 2012
@@ -40,7 +40,9 @@
bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
const AMDGPUSubtarget &STM = TM.getSubtarget<AMDGPUSubtarget>();
if (STM.dumpCode()) {
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
MF.dump();
+#endif
}
SetupMachineFunction(MF);
OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
More information about the llvm-branch-commits
mailing list