summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-11-21 11:25:01 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-11-21 11:25:01 +0000
commit71e902101d542b3fc0705be53a20038f788a3f88 (patch)
tree704fd2dd3b4481aefb05073264d26a1d5427153c
parent66bae9aee83c4c48d4642f218b3afec6dff8e83b (diff)
downloadbcm5719-llvm-71e902101d542b3fc0705be53a20038f788a3f88.tar.gz
bcm5719-llvm-71e902101d542b3fc0705be53a20038f788a3f88.zip
[nios2] Add missing Nios2CodeGen -> Nios2AsmPrinter linkage
Add missing linkage from Nios2CodeGen library to Nios2AsmPrinter library. The missing dependency causes shared-lib build to fail with the following reason: lib/Target/Nios2/CMakeFiles/LLVMNios2CodeGen.dir/Nios2AsmPrinter.cpp.o: In function `(anonymous namespace)::Nios2AsmPrinter::PrintAsmMemoryOperand(llvm::MachineInstr const*, unsigned int, unsigned int, char const*, llvm::raw_ostream&)': Nios2AsmPrinter.cpp:(.text._ZN12_GLOBAL__N_115Nios2AsmPrinter21PrintAsmMemoryOperandEPKN4llvm12MachineInstrEjjPKcRNS1_11raw_ostreamE+0x2b): undefined reference to `llvm::Nios2InstPrinter::getRegisterName(unsigned int)' lib/Target/Nios2/CMakeFiles/LLVMNios2CodeGen.dir/Nios2AsmPrinter.cpp.o: In function `(anonymous namespace)::Nios2AsmPrinter::PrintAsmOperand(llvm::MachineInstr const*, unsigned int, unsigned int, char const*, llvm::raw_ostream&)': Nios2AsmPrinter.cpp:(.text._ZN12_GLOBAL__N_115Nios2AsmPrinter15PrintAsmOperandEPKN4llvm12MachineInstrEjjPKcRNS1_11raw_ostreamE+0x97): undefined reference to `llvm::Nios2InstPrinter::getRegisterName(unsigned int)' collect2: error: ld returned 1 exit status Differential Revision: https://reviews.llvm.org/D47810 llvm-svn: 347387
-rw-r--r--llvm/lib/Target/Nios2/LLVMBuild.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Nios2/LLVMBuild.txt b/llvm/lib/Target/Nios2/LLVMBuild.txt
index 0125bbedea5..46dd93308c0 100644
--- a/llvm/lib/Target/Nios2/LLVMBuild.txt
+++ b/llvm/lib/Target/Nios2/LLVMBuild.txt
@@ -53,6 +53,7 @@ required_libraries = AsmPrinter
Core
GlobalISel
MC
+ Nios2AsmPrinter
Nios2Desc
Nios2Info
SelectionDAG
OpenPOWER on IntegriCloud