[PATCH] D38556: AMDGPU: Add and set AMDGPU-specific e_flags
Tony Tye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 4 15:01:52 PDT 2017
t-tye added inline comments.
================
Comment at: include/llvm/Object/ELFObjectFile.h:1067
+ case ELF::EM_AMDGPU: {
+ unsigned EFlags = EF.getHeader()->e_flags;
+ switch (EFlags & ELF::EF_AMDGPU_ARCH) {
----------------
Suggest including:
```
if (!IsLittleEndian)
return Triple::UnknownArch;
```
https://reviews.llvm.org/D38556
More information about the llvm-commits
mailing list