mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
AMDGPU/llvm-readobj: Rename RuntimeMDNoteType -> CodeObjectMetadataNoteType to
match the new metadata. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9c17af0f6
commit
e41b522145
@ -2365,7 +2365,7 @@ template <class ELFT> void ELFDumper<ELFT>::printAMDGPUCodeObjectMetadata() {
|
||||
}
|
||||
ArrayRef<uint8_t> Sec = unwrapOrError(Obj->getSectionContents(Shdr));
|
||||
|
||||
const uint32_t RuntimeMDNoteType = 10;
|
||||
const uint32_t CodeObjectMetadataNoteType = 10;
|
||||
for (auto I = reinterpret_cast<const Elf_Word *>(&Sec[0]),
|
||||
E = I + Sec.size()/4; I != E;) {
|
||||
uint32_t NameSZ = I[0];
|
||||
@ -2379,7 +2379,7 @@ template <class ELFT> void ELFDumper<ELFT>::printAMDGPUCodeObjectMetadata() {
|
||||
I += alignTo<4>(NameSZ)/4;
|
||||
}
|
||||
|
||||
if (Name == "AMD" && Type == RuntimeMDNoteType) {
|
||||
if (Name == "AMD" && Type == CodeObjectMetadataNoteType) {
|
||||
StringRef Desc(reinterpret_cast<const char *>(I), DescSZ);
|
||||
W.printString(Desc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user