aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp b/contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp
index e2e601b6d90f..dc8f3051a149 100644
--- a/contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp
+++ b/contrib/llvm-project/llvm/lib/BinaryFormat/ELF.cpp
@@ -197,6 +197,7 @@ uint16_t ELF::convertArchNameToEMachine(StringRef Arch) {
.Case("bpf", EM_BPF)
.Case("ve", EM_VE)
.Case("csky", EM_CSKY)
+ .Case("loongarch", EM_LOONGARCH)
.Default(EM_NONE);
}
@@ -561,6 +562,8 @@ StringRef ELF::convertEMachineToArchName(uint16_t EMachine) {
return "ve";
case EM_CSKY:
return "csky";
+ case EM_LOONGARCH:
+ return "loongarch";
default:
return "None";
}