git: 344691934f0c - stable/13 - llvm BPF target: add missed source files

From: Dimitry Andric <>
Date: Fri, 05 Nov 2021 16:10:39 UTC
The branch stable/13 has been updated by dim:


commit 344691934f0c594b9cdf788e0a1390f3ca9dd2ea
Author:     Dimitry Andric <>
AuthorDate: 2021-11-02 16:49:34 +0000
Commit:     Dimitry Andric <>
CommitDate: 2021-11-05 16:10:14 +0000

    llvm BPF target: add missed source files
    Otherwise, linking llvm binaries with this target enabled (which is not
    the default) will fail with a number of undefined symbol errors:
      ld: error: undefined symbol: llvm::initializeBPFAdjustOptPass(llvm::PassRegistry&)
      ld: error: undefined symbol: llvm::initializeBPFCheckAndAdjustIRPass(llvm::PassRegistry&)
      ld: error: undefined symbol: llvm::createBPFCheckAndAdjustIR()
      ld: error: undefined symbol: llvm::createBPFAdjustOpt()
      ld: error: undefined symbol: llvm::BPFAdjustOptPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)
    Reported by:    Michael Dexter <>
    (cherry picked from commit d30dc78f798adebda488d2b8e21290268d2fb501)
 lib/clang/libllvm/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile
index 09d6336c01d9..caca02399c42 100644
--- a/lib/clang/libllvm/Makefile
+++ b/lib/clang/libllvm/Makefile
@@ -1157,7 +1157,9 @@ SRCS_MIN+=	Target/ARM/Utils/ARMBaseInfo.cpp
 .if ${MK_LLVM_TARGET_BPF} != "no"
 SRCS_MIN+=	Target/BPF/AsmParser/BPFAsmParser.cpp
 SRCS_MIN+=	Target/BPF/BPFAbstractMemberAccess.cpp
+SRCS_MIN+=	Target/BPF/BPFAdjustOpt.cpp
 SRCS_MIN+=	Target/BPF/BPFAsmPrinter.cpp
+SRCS_MIN+=	Target/BPF/BPFCheckAndAdjustIR.cpp
 SRCS_MIN+=	Target/BPF/BPFFrameLowering.cpp
 SRCS_MIN+=	Target/BPF/BPFISelLowering.cpp