This is an archive of the discontinued LLVM Phabricator instance.

[nios2] Add missing Nios2CodeGen -> Nios2AsmPrinter linkage
ClosedPublic

Authored by mgorny on Jun 5 2018, 11:57 PM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Jun 5 2018, 11:57 PM

Gentle ping.

chapuni accepted this revision.Nov 21 2018, 2:28 AM

I think such a fixup may be "obvious". Go ahead!

This revision is now accepted and ready to land.Nov 21 2018, 2:28 AM
This revision was automatically updated to reflect the committed changes.