1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/MC/MachO
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 Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
ARM Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
absolute.s
absolutize.s MC: Remove obsolete MachO UseAggressiveSymbolFolding. 2015-06-04 20:27:42 +00:00
bad-darwin-x86_64-32-bit-abs-addr.s
bad-darwin-x86_64-diff-relocs.s
bad-darwin-x86_64-reloc-expr1.s
bad-darwin-x86_64-reloc-expr2.s
bad-darwin-x86_64-reloc-expr.s
bad-dollar.s
bad-indirect-symbols.s
bad-macro.s
bss.s
comm-1.s
cstexpr-gotpcrel-32.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
cstexpr-gotpcrel-64.ll [AsmPrinter] Don't assert on GOT equivalent non-constant users. 2015-03-27 01:40:54 +00:00
darwin-complex-difference.s
darwin-x86_64-diff-reloc-assign-2.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
darwin-x86_64-diff-reloc-assign.s
darwin-x86_64-diff-relocs.s
darwin-x86_64-nobase-relocs.s
darwin-x86_64-reloc-offsets.s
darwin-x86_64-reloc.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
data.s
debug_frame.s
diff-with-two-sections.s
direction_labels.s
eh_symbol.s
eh-frame-reloc.s
file.s
gen-dwarf-cpp.s
gen-dwarf-macro-cpp.s
gen-dwarf-producer.s
gen-dwarf.s
i386-large-relocations.s
indirect-symbols.s
jcc.s
lcomm-attributes.s
linker-option-1.s
linker-option-2.s
linker-options.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
lit.local.cfg
loc.s
osx-version-min-load-command.s
pcrel-to-other-section.s
pr19185.s
previous.s
pushsection.s
relax-jumps.s
relax-recompute-align.s
reloc-diff.s MC: Remove obsolete MachO UseAggressiveSymbolFolding. 2015-06-04 20:27:42 +00:00
reloc-pcrel-offset.s
reloc-pcrel.s
reloc.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
section-align-1.s
section-align-2.s
section-attributes.s
section-flags.s
string-table.s
symbol-diff.s
symbol-flags.s
symbol-indirect.s
symbols-1.s
tbss.s
tdata.s
temp-labels.s
thread_init_func.s
tls.s
tlv-bss.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
tlv-reloc.s
tlv.s
values.s
variable-errors.s
variable-exprs.s
weakdef.s
x86_32-optimal_nop.s
x86_32-scattered-reloc-fallback.s
x86_32-sections.s
x86_32-symbols.s
x86_64-mergeable.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
x86_64-reloc-arithmetic.s
x86_64-sections.s
x86_64-symbols.s Add r224985 back with fixes. 2015-01-19 21:11:14 +00:00
x86-data-in-code.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
zerofill-1.s
zerofill-2.s
zerofill-3.s
zerofill-4.s
zerofill-5.s
zerofill-sect-align.s