diff options
author | tstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-11-13 15:22:16 +0000 |
---|---|---|
committer | tstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-11-13 15:22:16 +0000 |
commit | 87ba02e933dd049cdbc82d0237ab0b6213995a3b (patch) | |
tree | c102536afe1d76527cdf2e438dee05063d4596f2 | |
parent | dca75e6619ed9262936a233deb03de9da897aa93 (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.cpp | 2 |
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()); |