[lld] [lld][ELF] Recognize sparcv9 bitcode (PR #72609)
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 21:39:52 PST 2023
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/72609
None
>From 88dc5128d9f1369c317a30ef77f8a431096bfe45 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Thu, 16 Nov 2023 19:59:10 -0500
Subject: [PATCH] [lld][ELF] Recognize sparcv9 bitcode
---
lld/ELF/InputFiles.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 4b4d7d6db93cd57..2d3c216bc1679ca 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -1607,6 +1607,8 @@ static uint16_t getBitcodeMachineKind(StringRef path, const Triple &t) {
case Triple::riscv32:
case Triple::riscv64:
return EM_RISCV;
+ case Triple::sparcv9:
+ return EM_SPARCV9;
case Triple::x86:
return t.isOSIAMCU() ? EM_IAMCU : EM_386;
case Triple::x86_64:
More information about the llvm-commits
mailing list