[PATCH] D11263: ELFYAML: Enable parsing of EM_AMDGPU
Tom Stellard
thomas.stellard at amd.com
Thu Jul 16 07:53:16 PDT 2015
tstellarAMD created this revision.
tstellarAMD added a subscriber: llvm-commits.
http://reviews.llvm.org/D11263
Files:
lib/Object/ELFYAML.cpp
test/Object/AMDGPU/elf-definitios.yaml
Index: test/Object/AMDGPU/elf-definitios.yaml
===================================================================
--- /dev/null
+++ test/Object/AMDGPU/elf-definitios.yaml
@@ -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
+...
Index: lib/Object/ELFYAML.cpp
===================================================================
--- lib/Object/ELFYAML.cpp
+++ lib/Object/ELFYAML.cpp
@@ -193,6 +193,7 @@
ECase(EM_VIDEOCORE5)
ECase(EM_78KOR)
ECase(EM_56800EX)
+ ECase(EM_AMDGPU)
#undef ECase
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11263.29907.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150716/e5e1ee35/attachment.bin>
More information about the llvm-commits
mailing list