From: Konstantin Zhuravlyov Date: Fri, 31 Mar 2017 22:36:39 +0000 (+0000) Subject: AMDGPU/llvm-readobj: Rename RuntimeMDNoteType -> CodeObjectMetadataNoteType to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e41b52214554f92623bdbeee37b0e3a0c24d5434;p=llvm 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 --- diff --git a/tools/llvm-readobj/ELFDumper.cpp b/tools/llvm-readobj/ELFDumper.cpp index 31bc9c15baa..264d5730525 100644 --- a/tools/llvm-readobj/ELFDumper.cpp +++ b/tools/llvm-readobj/ELFDumper.cpp @@ -2365,7 +2365,7 @@ template void ELFDumper::printAMDGPUCodeObjectMetadata() { } ArrayRef Sec = unwrapOrError(Obj->getSectionContents(Shdr)); - const uint32_t RuntimeMDNoteType = 10; + const uint32_t CodeObjectMetadataNoteType = 10; for (auto I = reinterpret_cast(&Sec[0]), E = I + Sec.size()/4; I != E;) { uint32_t NameSZ = I[0]; @@ -2379,7 +2379,7 @@ template void ELFDumper::printAMDGPUCodeObjectMetadata() { I += alignTo<4>(NameSZ)/4; } - if (Name == "AMD" && Type == RuntimeMDNoteType) { + if (Name == "AMD" && Type == CodeObjectMetadataNoteType) { StringRef Desc(reinterpret_cast(I), DescSZ); W.printString(Desc); }