summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-11-13 14:38:52 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-11-13 14:43:49 +0000
commit1fd7b81f0992e145e333a3a41d3179fd005ec875 (patch)
treec102536afe1d76527cdf2e438dee05063d4596f2
parent4679fccdb14a818afb8a43bacea2fa22f344433c (diff)
AMDGPU: Fix builds with -DNDEBUGNov13-test
-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 497811366e2..012f3e933a0 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());