mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 19:20:23 +00:00
930ca98433
The fix itself is fairly simple: move getAccessVariant to MCValue so that we replace the old weak expression evaluation with the far more general EvaluateAsRelocatable. This then requires that EvaluateAsRelocatable stop when it finds a non trivial reference kind. And that in turn requires the ELF writer to look harder for weak references. Last but not least, this found a case where we were being bug by bug compatible with gas and accepting an invalid input. I reported pr19647 to track it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207920 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
1.1 KiB
CMake
58 lines
1.1 KiB
CMake
add_llvm_library(LLVMMC
|
|
ELFObjectWriter.cpp
|
|
MCAsmBackend.cpp
|
|
MCAsmInfo.cpp
|
|
MCAsmInfoCOFF.cpp
|
|
MCAsmInfoDarwin.cpp
|
|
MCAsmInfoELF.cpp
|
|
MCAsmStreamer.cpp
|
|
MCAssembler.cpp
|
|
MCAtom.cpp
|
|
MCCodeEmitter.cpp
|
|
MCCodeGenInfo.cpp
|
|
MCContext.cpp
|
|
MCDisassembler.cpp
|
|
MCDwarf.cpp
|
|
MCELF.cpp
|
|
MCELFObjectTargetWriter.cpp
|
|
MCELFStreamer.cpp
|
|
MCFunction.cpp
|
|
MCExpr.cpp
|
|
MCExternalSymbolizer.cpp
|
|
MCInst.cpp
|
|
MCInstPrinter.cpp
|
|
MCInstrAnalysis.cpp
|
|
MCLabel.cpp
|
|
MCLinkerOptimizationHint.cpp
|
|
MCMachOStreamer.cpp
|
|
MCMachObjectTargetWriter.cpp
|
|
MCModule.cpp
|
|
MCModuleYAML.cpp
|
|
MCNullStreamer.cpp
|
|
MCObjectFileInfo.cpp
|
|
MCObjectDisassembler.cpp
|
|
MCObjectStreamer.cpp
|
|
MCObjectSymbolizer.cpp
|
|
MCObjectWriter.cpp
|
|
MCRegisterInfo.cpp
|
|
MCRelocationInfo.cpp
|
|
MCSection.cpp
|
|
MCSectionCOFF.cpp
|
|
MCSectionELF.cpp
|
|
MCSectionMachO.cpp
|
|
MCStreamer.cpp
|
|
MCSubtargetInfo.cpp
|
|
MCSymbol.cpp
|
|
MCSymbolizer.cpp
|
|
MCTargetOptions.cpp
|
|
MCValue.cpp
|
|
MCWin64EH.cpp
|
|
MachObjectWriter.cpp
|
|
SubtargetFeature.cpp
|
|
WinCOFFObjectWriter.cpp
|
|
WinCOFFStreamer.cpp
|
|
)
|
|
|
|
add_subdirectory(MCParser)
|
|
add_subdirectory(MCDisassembler)
|