summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-11-13 15:22:16 +0000
committertstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-11-13 15:22:16 +0000
commit87ba02e933dd049cdbc82d0237ab0b6213995a3b (patch)
treec102536afe1d76527cdf2e438dee05063d4596f2
parentdca75e6619ed9262936a233deb03de9da897aa93 (diff)
AMDGPU: Fix builds with -DNDEBUG
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/R600/@167845 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index 497811366e..012f3e933a 100644
--- a/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -40,7 +40,9 @@ extern "C" void LLVMInitializeAMDGPUAsmPrinter() {
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());