From aa5c86aa52cce51226dfe47112dcfb0c4ae2e10d Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 19 Nov 2024 14:10:16 -0300 Subject: [PATCH] Allow LLD to process bitcode for SBF --- lld/ELF/InputFiles.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 6c7ef27cbd49423..2f57c3b999f6670 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -1620,6 +1620,8 @@ static uint16_t getBitcodeMachineKind(StringRef path, const Triple &t) { return t.isOSIAMCU() ? EM_IAMCU : EM_386; case Triple::x86_64: return EM_X86_64; + case Triple::sbf: + return EM_SBF; default: error(path + ": could not infer e_machine from bitcode target triple " + t.str());