[PATCH] D47810: [nios2] Add missing Nios2CodeGen -> Nios2AsmPrinter linkage
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 5 23:57:30 PDT 2018
mgorny created this revision.
mgorny added reviewers: nikolai.bozhenov, pcc.
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
Repository:
rL LLVM
https://reviews.llvm.org/D47810
Files:
lib/Target/Nios2/LLVMBuild.txt
Index: lib/Target/Nios2/LLVMBuild.txt
===================================================================
--- lib/Target/Nios2/LLVMBuild.txt
+++ lib/Target/Nios2/LLVMBuild.txt
@@ -53,6 +53,7 @@
Core
GlobalISel
MC
+ Nios2AsmPrinter
Nios2Desc
Nios2Info
SelectionDAG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47810.150079.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180606/7b40de49/attachment.bin>
More information about the llvm-commits
mailing list