AMDGPU/llvm-readobj: Rename RuntimeMDNoteType -> CodeObjectMetadataNoteType to
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Fri, 31 Mar 2017 22:36:39 +0000 (22:36 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Fri, 31 Mar 2017 22:36:39 +0000 (22:36 +0000)
match the new metadata. NFC.

llvm-svn: 299275

llvm/tools/llvm-readobj/ELFDumper.cpp

index 31bc9c1..264d573 100644 (file)
@@ -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);
     }