llvm-project/llvm/lib/Target/Sparc/MCTargetDesc
Rafael Espindola e3a20f57d9 Fix pr24486.
This extends the work done in r233995 so that now getFragment (in addition to
getSection) also works for variable symbols.

With that the existing logic to decide if a-b can be computed works even if
a or b are variables. Given that, the expression evaluation can avoid expanding
variables as aggressively and that in turn lets the relocation code see the
original variable.

In order for this to work with the asm streamer, there is now a dummy fragment
per section. It is used to assign a section to a symbol when no other fragment
exists.

This patch is a joint work by Maxim Ostapenko andy myself.

llvm-svn: 249303
2015-10-05 12:07:05 +00:00
..
CMakeLists.txt [Sparc] Add ELF Object Writer for Sparc. 2014-01-06 01:22:54 +00:00
LLVMBuild.txt [Sparc] Lower and MachineInstr to MC and print assembly using MCInstPrinter. 2013-12-26 01:49:59 +00:00
Makefile
SparcAsmBackend.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
SparcELFObjectWriter.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
SparcFixupKinds.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
SparcMCAsmInfo.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
SparcMCAsmInfo.h Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
SparcMCCodeEmitter.cpp Replace custom fixed endian to raw_ostream emission with EndianStream. 2015-06-04 15:03:02 +00:00
SparcMCExpr.cpp MC: Add target hook to control symbol quoting 2015-06-09 00:31:39 +00:00
SparcMCExpr.h Fix pr24486. 2015-10-05 12:07:05 +00:00
SparcMCTargetDesc.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
SparcMCTargetDesc.h Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
SparcTargetStreamer.cpp Construct the MCStreamer before constructing the MCTargetStreamer. 2014-01-26 06:06:37 +00:00