BPF: fix libLLVMBPFCodeGen.so build failure
authorYonghong Song <yhs@fb.com>
Thu, 6 Aug 2020 22:22:03 +0000 (15:22 -0700)
committerYonghong Song <yhs@fb.com>
Thu, 6 Aug 2020 22:27:15 +0000 (15:27 -0700)
Buildbot reported a build failure when building shared
library libLLVMBPFCodeGen.so with unknown reference to
"createCFGSimplificationPass".

Commit 87cba434027b ("BPF: add a SimplifyCFG IR pass during
generic Scalar/IPO optimization") added an IR pass SimplifyCFG
by BPF target. The commit called function
createCFGSimplificationPass() defined in "Scalar" library.
Add this library in Target/BPF/LLVMBuild.txt so
shared library build can succeed.

llvm/lib/Target/BPF/LLVMBuild.txt

index 6284a1b..3bac1f0 100644 (file)
@@ -36,6 +36,7 @@ required_libraries =
  BPFDesc
  BPFInfo
  IPO
+ Scalar
  SelectionDAG
  Support
  Target