mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
R600/SI: Remove MachineFunction dump from AsmPrinter
The dump was dependent on a feature string, which meant that it couldn't be disabled or enable on a per compile basis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -161,12 +161,8 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (STM.dumpCode()) {
|
if (STM.dumpCode() && DisasmEnabled) {
|
||||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
|
||||||
MF.dump();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (DisasmEnabled) {
|
|
||||||
OutStreamer.SwitchSection(Context.getELFSection(".AMDGPU.disasm",
|
OutStreamer.SwitchSection(Context.getELFSection(".AMDGPU.disasm",
|
||||||
ELF::SHT_NOTE, 0,
|
ELF::SHT_NOTE, 0,
|
||||||
SectionKind::getReadOnly()));
|
SectionKind::getReadOnly()));
|
||||||
@ -179,7 +175,6 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
OutStreamer.EmitBytes(StringRef(Comment));
|
OutStreamer.EmitBytes(StringRef(Comment));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user