[llvm] 4327a9b - [AMDGPU] Use progbits type for .AMDGPU.disasm section
Sebastian Neubauer via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 12 01:08:27 PDT 2020
Author: Sebastian Neubauer
Date: 2020-03-12T09:08:11+01:00
New Revision: 4327a9b46b46d587816f765c619838ea3e01cd19
URL: https://github.com/llvm/llvm-project/commit/4327a9b46b46d587816f765c619838ea3e01cd19
DIFF: https://github.com/llvm/llvm-project/commit/4327a9b46b46d587816f765c619838ea3e01cd19.diff
LOG: [AMDGPU] Use progbits type for .AMDGPU.disasm section
The note section type implies a specific format that this section does
not have thus tools like readelf fail here. Progbits has no format and
another pipeline compiler already sets the type to progbits.
Differential Revision: https://reviews.llvm.org/D75913
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index c1915464d177..1a56f382ca80 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -541,7 +541,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
if (DumpCodeInstEmitter) {
OutStreamer->SwitchSection(
- Context.getELFSection(".AMDGPU.disasm", ELF::SHT_NOTE, 0));
+ Context.getELFSection(".AMDGPU.disasm", ELF::SHT_PROGBITS, 0));
for (size_t i = 0; i < DisasmLines.size(); ++i) {
std::string Comment = "\n";
More information about the llvm-commits
mailing list