@@ -125,20 +125,20 @@ MCELFStreamer &AMDGPUTargetELFStreamer::getStreamer() {
125
125
}
126
126
127
127
void AMDGPUTargetELFStreamer::EmitAMDGPUNote (
128
- const MCExpr *DescSZ, PT_NOTE ::NoteType Type,
128
+ const MCExpr *DescSZ, ElfNote ::NoteType Type,
129
129
function_ref<void (MCELFStreamer &)> EmitDesc) {
130
130
auto &S = getStreamer ();
131
131
auto &Context = S.getContext ();
132
132
133
- auto NameSZ = sizeof (PT_NOTE ::NoteName);
133
+ auto NameSZ = sizeof (ElfNote ::NoteName);
134
134
135
135
S.PushSection ();
136
136
S.SwitchSection (Context.getELFSection (
137
- PT_NOTE ::SectionName, ELF::SHT_NOTE, ELF::SHF_ALLOC));
137
+ ElfNote ::SectionName, ELF::SHT_NOTE, ELF::SHF_ALLOC));
138
138
S.EmitIntValue (NameSZ, 4 ); // namesz
139
139
S.EmitValue (DescSZ, 4 ); // descz
140
- S.EmitIntValue (Type, 4 ); // type
141
- S.EmitBytes (StringRef (PT_NOTE ::NoteName, NameSZ)); // name
140
+ S.EmitIntValue (Type, 4 ); // type
141
+ S.EmitBytes (StringRef (ElfNote ::NoteName, NameSZ)); // name
142
142
S.EmitValueToAlignment (4 , 0 , 1 , 0 ); // padding 0
143
143
EmitDesc (S); // desc
144
144
S.EmitValueToAlignment (4 , 0 , 1 , 0 ); // padding 0
@@ -151,7 +151,7 @@ AMDGPUTargetELFStreamer::EmitDirectiveHSACodeObjectVersion(uint32_t Major,
151
151
152
152
EmitAMDGPUNote (
153
153
MCConstantExpr::create (8 , getContext ()),
154
- PT_NOTE ::NT_AMDGPU_HSA_CODE_OBJECT_VERSION,
154
+ ElfNote ::NT_AMDGPU_HSA_CODE_OBJECT_VERSION,
155
155
[&](MCELFStreamer &OS){
156
156
OS.EmitIntValue (Major, 4 );
157
157
OS.EmitIntValue (Minor, 4 );
@@ -174,7 +174,7 @@ AMDGPUTargetELFStreamer::EmitDirectiveHSACodeObjectISA(uint32_t Major,
174
174
175
175
EmitAMDGPUNote (
176
176
MCConstantExpr::create (DescSZ, getContext ()),
177
- PT_NOTE ::NT_AMDGPU_HSA_ISA,
177
+ ElfNote ::NT_AMDGPU_HSA_ISA,
178
178
[&](MCELFStreamer &OS) {
179
179
OS.EmitIntValue (VendorNameSize, 2 );
180
180
OS.EmitIntValue (ArchNameSize, 2 );
@@ -240,7 +240,7 @@ bool AMDGPUTargetELFStreamer::EmitRuntimeMetadata(const FeatureBitset &Features,
240
240
241
241
EmitAMDGPUNote (
242
242
DescSZ,
243
- PT_NOTE ::NT_AMDGPU_HSA_RUNTIME_METADATA,
243
+ ElfNote ::NT_AMDGPU_HSA_RUNTIME_METADATA,
244
244
[&](MCELFStreamer &OS) {
245
245
OS.EmitLabel (DescBegin);
246
246
OS.EmitBytes (VerifiedMetadata.get ());
0 commit comments