From 43e14390b022a8cfbfc78e7a7d76c80ca39b3c03 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 22 Jun 2019 01:30:17 +0000 Subject: [PATCH] Make GlobalISel depend on SelectionDAG after D63169 GlobalISel/IRTranslator.cpp now references SelectionDAG/FunctionLoweringInfo.cpp. This fixes a link error in -DBUILD_SHARED_LIBS=on builds: ld.lld: error: undefined symbol: llvm::FunctionLoweringInfo::clear() >>> referenced by IRTranslator.cpp:2198 (../lib/CodeGen/GlobalISel/IRTranslator.cpp:2198) >>> lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/IRTranslator.cpp.o:(llvm::IRTranslator::finalizeFunction()) llvm-svn: 364124 --- llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt b/llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt index deeed37d7a95..3d550b5332db 100644 --- a/llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt +++ b/llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt @@ -18,4 +18,4 @@ type = Library name = GlobalISel parent = CodeGen -required_libraries = Analysis CodeGen Core MC Support Target TransformUtils +required_libraries = Analysis CodeGen Core MC SelectionDAG Support Target TransformUtils