Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 45849f5

Browse files
committed
[AMDGPU] TargetStreamer: Fix .note section name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286591 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 93f9010 commit 45849f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ AMDGPUTargetELFStreamer::EmitDirectiveHSACodeObjectVersion(uint32_t Major,
108108
uint32_t Minor) {
109109
MCStreamer &OS = getStreamer();
110110
MCSectionELF *Note =
111-
OS.getContext().getELFSection(PT_NOTE::NoteName, ELF::SHT_NOTE,
111+
OS.getContext().getELFSection(PT_NOTE::SectionName, ELF::SHT_NOTE,
112112
ELF::SHF_ALLOC);
113113

114114
auto NameSZ = sizeof(PT_NOTE::NoteName);
@@ -133,7 +133,7 @@ AMDGPUTargetELFStreamer::EmitDirectiveHSACodeObjectISA(uint32_t Major,
133133
StringRef ArchName) {
134134
MCStreamer &OS = getStreamer();
135135
MCSectionELF *Note =
136-
OS.getContext().getELFSection(PT_NOTE::NoteName, ELF::SHT_NOTE,
136+
OS.getContext().getELFSection(PT_NOTE::SectionName, ELF::SHT_NOTE,
137137
ELF::SHF_ALLOC);
138138

139139
uint16_t VendorNameSize = VendorName.size() + 1;

0 commit comments

Comments
 (0)