[PATCH] D14457: ELF: Add missing case for AMDGPU to ELFFile::kindArch()

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 11:33:52 PST 2015


tstellarAMD created this revision.
tstellarAMD added a reviewer: ruiu.
tstellarAMD added a subscriber: llvm-commits.

http://reviews.llvm.org/D14457

Files:
  lib/ReaderWriter/ELF/ELFFile.cpp

Index: lib/ReaderWriter/ELF/ELFFile.cpp
===================================================================
--- lib/ReaderWriter/ELF/ELFFile.cpp
+++ lib/ReaderWriter/ELF/ELFFile.cpp
@@ -113,6 +113,8 @@
     return Reference::KindArch::Mips;
   case llvm::ELF::EM_AARCH64:
     return Reference::KindArch::AArch64;
+  case llvm::ELF::EM_AMDGPU:
+    return Reference::KindArch::AMDGPU;
   }
   llvm_unreachable("unsupported e_machine value");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14457.39570.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151106/47ca8865/attachment.bin>


More information about the llvm-commits mailing list