[llvm] r286591 - [AMDGPU] TargetStreamer: Fix .note section name
Sam Kolton via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 05:41:53 PST 2016
Author: skolton
Date: Fri Nov 11 07:41:52 2016
New Revision: 286591
URL: http://llvm.org/viewvc/llvm-project?rev=286591&view=rev
Log:
[AMDGPU] TargetStreamer: Fix .note section name
Modified:
llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp?rev=286591&r1=286590&r2=286591&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp Fri Nov 11 07:41:52 2016
@@ -108,7 +108,7 @@ AMDGPUTargetELFStreamer::EmitDirectiveHS
uint32_t Minor) {
MCStreamer &OS = getStreamer();
MCSectionELF *Note =
- OS.getContext().getELFSection(PT_NOTE::NoteName, ELF::SHT_NOTE,
+ OS.getContext().getELFSection(PT_NOTE::SectionName, ELF::SHT_NOTE,
ELF::SHF_ALLOC);
auto NameSZ = sizeof(PT_NOTE::NoteName);
@@ -133,7 +133,7 @@ AMDGPUTargetELFStreamer::EmitDirectiveHS
StringRef ArchName) {
MCStreamer &OS = getStreamer();
MCSectionELF *Note =
- OS.getContext().getELFSection(PT_NOTE::NoteName, ELF::SHT_NOTE,
+ OS.getContext().getELFSection(PT_NOTE::SectionName, ELF::SHT_NOTE,
ELF::SHF_ALLOC);
uint16_t VendorNameSize = VendorName.size() + 1;
More information about the llvm-commits
mailing list