[PATCH] D138018: [BinaryFormat] Add LoongArch
WÁNG Xuěruì via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 15 02:29:10 PST 2022
xen0n created this revision.
xen0n added reviewers: MaskRay, SixWeining, wangleiat, xry111, gonglingqin.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
xen0n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
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.475397.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221115/665b8fb7/attachment.bin>
More information about the llvm-commits
mailing list