[llvm] r243724 - ELFYAML: Enable parsing of EM_AMDGPU
Tom Stellard
thomas.stellard at amd.com
Thu Jul 30 18:15:15 PDT 2015
Author: tstellar
Date: Thu Jul 30 20:15:15 2015
New Revision: 243724
URL: http://llvm.org/viewvc/llvm-project?rev=243724&view=rev
Log:
ELFYAML: Enable parsing of EM_AMDGPU
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D11263
Added:
llvm/trunk/test/Object/AMDGPU/
llvm/trunk/test/Object/AMDGPU/elf-definitios.yaml
Modified:
llvm/trunk/lib/Object/ELFYAML.cpp
Modified: llvm/trunk/lib/Object/ELFYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ELFYAML.cpp?rev=243724&r1=243723&r2=243724&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ELFYAML.cpp (original)
+++ llvm/trunk/lib/Object/ELFYAML.cpp Thu Jul 30 20:15:15 2015
@@ -193,6 +193,7 @@ ScalarEnumerationTraits<ELFYAML::ELF_EM>
ECase(EM_VIDEOCORE5)
ECase(EM_78KOR)
ECase(EM_56800EX)
+ ECase(EM_AMDGPU)
#undef ECase
}
Added: llvm/trunk/test/Object/AMDGPU/elf-definitios.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/AMDGPU/elf-definitios.yaml?rev=243724&view=auto
==============================================================================
--- llvm/trunk/test/Object/AMDGPU/elf-definitios.yaml (added)
+++ llvm/trunk/test/Object/AMDGPU/elf-definitios.yaml Thu Jul 30 20:15:15 2015
@@ -0,0 +1,12 @@
+# RUN: yaml2obj -format=elf %s > %t.o
+# RUN: llvm-readobj -file-headers %t.o | FileCheck %s
+
+# CHECK: Machine: EM_AMDGPU (0xE0)
+
+---
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_REL
+ Machine: EM_AMDGPU
+...
More information about the llvm-commits
mailing list