llvm-project/llvm/lib/Target/AArch64/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
..
AArch64AddressingModes.h MathExtras: Bring Count(Trailing|Leading)Ones and CountPopulation in line with countTrailingZeros 2015-02-12 15:35:40 +00:00
AArch64AsmBackend.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
AArch64ELFObjectWriter.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
AArch64ELFStreamer.cpp Cleanup places that passed SMLoc by const reference to pass it by value instead. NFC 2015-09-20 23:35:59 +00:00
AArch64ELFStreamer.h Use raw_pwrite_stream in the object writer/streamer. 2015-04-14 22:14:34 +00:00
AArch64FixupKinds.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
AArch64MCAsmInfo.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
AArch64MCAsmInfo.h Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
AArch64MCCodeEmitter.cpp Replace custom fixed endian to raw_ostream emission with EndianStream. 2015-06-04 15:03:02 +00:00
AArch64MCExpr.cpp Fix pr24486. 2015-10-05 12:07:05 +00:00
AArch64MCExpr.h Fix pr24486. 2015-10-05 12:07:05 +00:00
AArch64MCTargetDesc.cpp Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
AArch64MCTargetDesc.h Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC. 2015-09-15 16:17:27 +00:00
AArch64MachObjectWriter.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
AArch64TargetStreamer.cpp [AArch64] Move AArch64TargetStreamer out of MCStreamer.h 2015-05-23 16:15:10 +00:00
AArch64TargetStreamer.h [AArch64] Move AArch64TargetStreamer out of MCStreamer.h 2015-05-23 16:15:10 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile