[PATCH] D138018: [BinaryFormat] Add LoongArch
Lu Weining via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 20:02:26 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcc07185a683c: [BinaryFormat] Add LoongArch (authored by WANG Xuerui <git at xen0n.name>, committed by SixWeining).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138018/new/
https://reviews.llvm.org/D138018
Files:
llvm/lib/BinaryFormat/ELF.cpp
Index: llvm/lib/BinaryFormat/ELF.cpp
===================================================================
--- llvm/lib/BinaryFormat/ELF.cpp
+++ llvm/lib/BinaryFormat/ELF.cpp
@@ -197,6 +197,7 @@
.Case("bpf", EM_BPF)
.Case("ve", EM_VE)
.Case("csky", EM_CSKY)
+ .Case("loongarch", EM_LOONGARCH)
.Default(EM_NONE);
}
@@ -561,6 +562,8 @@
return "ve";
case EM_CSKY:
return "csky";
+ case EM_LOONGARCH:
+ return "loongarch";
default:
return "None";
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138018.475995.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221117/d06369ae/attachment.bin>
More information about the llvm-commits
mailing list