File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,17 @@ const char SectionName[] = ".note";
25
25
26
26
const char NoteName[] = " AMD" ;
27
27
28
+ // TODO: Move this enum to include/llvm/Support so it can be used in tools?
28
29
enum NoteType{
29
30
NT_AMDGPU_HSA_CODE_OBJECT_VERSION = 1 ,
30
31
NT_AMDGPU_HSA_HSAIL = 2 ,
31
32
NT_AMDGPU_HSA_ISA = 3 ,
32
33
NT_AMDGPU_HSA_PRODUCER = 4 ,
33
34
NT_AMDGPU_HSA_PRODUCER_OPTIONS = 5 ,
34
35
NT_AMDGPU_HSA_EXTENSION = 6 ,
35
- NT_AMDGPU_HSA_RUNTIME_METADATA = 7 ,
36
+ NT_AMDGPU_HSA_RUNTIME_METADATA_V_1 = 7 , // deprecated since 12/14/16.
37
+ NT_AMDGPU_HSA_RUNTIME_METADATA_V_2 = 8 ,
38
+ NT_AMDGPU_HSA_RUNTIME_METADATA = NT_AMDGPU_HSA_RUNTIME_METADATA_V_2,
36
39
NT_AMDGPU_HSA_HLDEBUG_DEBUG = 101 ,
37
40
NT_AMDGPU_HSA_HLDEBUG_TARGET = 102
38
41
};
Original file line number Diff line number Diff line change @@ -2364,7 +2364,7 @@ template <class ELFT> void ELFDumper<ELFT>::printAMDGPURuntimeMD() {
2364
2364
}
2365
2365
ArrayRef<uint8_t > Sec = unwrapOrError (Obj->getSectionContents (Shdr));
2366
2366
2367
- const uint32_t RuntimeMDNoteType = 7 ;
2367
+ const uint32_t RuntimeMDNoteType = 8 ;
2368
2368
for (auto I = reinterpret_cast <const Elf_Word *>(&Sec[0 ]),
2369
2369
E = I + Sec.size ()/4 ; I != E;) {
2370
2370
uint32_t NameSZ = I[0 ];
You can’t perform that action at this time.
0 commit comments