]> 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>
Tue, 2 Nov 2021 16:49:50 +0000 (17:49 +0100)
commitd30dc78f798adebda488d2b8e21290268d2fb501
tree2b06f88499207fc3d5071c9c8d1735e4f1fe6a0b
parent2390a1441effaba0e3d0f2f447f448aaf20428f1
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>
MFC after: 3 days
lib/clang/libllvm/Makefile