[llvm] 6d102f1 - BPF: Add LLVMTransformUtils in CMakefile LINK_COMPONENTS

Yonghong Song via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 15:43:41 PST 2021


Author: Yonghong Song
Date: 2021-02-25T15:43:25-08:00
New Revision: 6d102f15a3af0a44cf2e26677e260bee425312f3

URL: https://github.com/llvm/llvm-project/commit/6d102f15a3af0a44cf2e26677e260bee425312f3
DIFF: https://github.com/llvm/llvm-project/commit/6d102f15a3af0a44cf2e26677e260bee425312f3.diff

LOG: BPF: Add LLVMTransformUtils in CMakefile LINK_COMPONENTS

Commit 1959ead525b8 ("BPF: Implement TTI.getCmpSelInstrCost()
properly") introduced a dependency on LLVMTransformUtils
library. Let us encode this dependency explicitly in
CMakefile to avoid build error.

Added: 
    

Modified: 
    llvm/lib/Target/BPF/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/BPF/CMakeLists.txt b/llvm/lib/Target/BPF/CMakeLists.txt
index 189a3a84c3df..2d804ca8a73e 100644
--- a/llvm/lib/Target/BPF/CMakeLists.txt
+++ b/llvm/lib/Target/BPF/CMakeLists.txt
@@ -47,6 +47,7 @@ add_llvm_target(BPFCodeGen
   SelectionDAG
   Support
   Target
+  TransformUtils
 
   ADD_TO_COMPONENT
   BPF


        


More information about the llvm-commits mailing list