1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 06:22:56 +02:00
llvm-mirror/test/CodeGen
Rafael Espindola d5d60f7168 Improve the --expand-relocs handling of MachO.
In a relocation target can take 3 basic forms

* A r_value in scattered relocations.
* A symbol in external relocations.
* A section is non-external relocations.

Have the dump reflect that. With this change we go from

CHECK-NEXT:       Extern: 0
CHECK-NEXT:       Type: X86_64_RELOC_SUBTRACTOR (5)
CHECK-NEXT:       Symbol: 0x2
CHECK-NEXT:       Scattered: 0

To just

// CHECK-NEXT:       Type: X86_64_RELOC_SUBTRACTOR (5)
// CHECK-NEXT:       Section: __data (2)

Since the relocation is with a section, we print the seciton name and don't
need to say that it is not scattered or external.

Someone motivated can add further special cases for things like
ARM64_RELOC_ADDEND and ARM_RELOC_PAIR.

llvm-svn: 240073
2015-06-18 22:38:20 +00:00
..
AArch64 Avoid redundant select node in early if-conversion pass 2015-06-18 22:34:09 +00:00
AMDGPU Revert "Revert "Fix merges of non-zero vector stores"" 2015-06-16 15:51:48 +00:00
ARM Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
BPF [bpf] rename triple names bpf_be -> bpfeb 2015-06-05 16:11:14 +00:00
CPP
Generic Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
Hexagon [Hexagon] Printing packet brackets when asm printing and adding a number of tests that test packet brackets. 2015-06-18 20:43:50 +00:00
Inputs IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
Mips Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
MIR MIR Parser: Report an error when a machine function doesn't have a corresponding function. 2015-06-16 17:06:29 +00:00
MSP430
NVPTX Add NVPTXLowerAlloca pass to convert alloca'ed memory to local address 2015-06-17 22:31:02 +00:00
PowerPC Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
SPARC [SPARC] Repair GOT references to internal symbols. 2015-06-18 15:05:15 +00:00
SystemZ [DAGCombiner] Account for getVectorIdxTy() when narrowing vector load 2015-05-05 19:34:10 +00:00
Thumb Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
Thumb2 Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
WinEH Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
X86 Switch lowering: enable whole-switch jump tables at -O0. 2015-06-18 22:22:30 +00:00
XCore Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00