]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
llvm BPF target: add missed source files
authorDimitry Andric <dim@FreeBSD.org>
Tue, 2 Nov 2021 16:49:34 +0000 (17:49 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Fri, 5 Nov 2021 16:10:14 +0000 (17:10 +0100)
commit344691934f0c594b9cdf788e0a1390f3ca9dd2ea
tree94c4557719417d46d426297cc170aa66a814960f
parent8a62b07bce7ba43caa7a345be30ab3a8afc220b0
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 <editor@callfortesting.org>

(cherry picked from commit d30dc78f798adebda488d2b8e21290268d2fb501)
lib/clang/libllvm/Makefile