summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmBackend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* MachO: enable .data_region directives everywhereTim Northover2016-04-211-1/+1
| | | | | | | | | | We'd disabled them on x86 because back in the early days some host tools couldn't handle the new load commands. This no longer holds: anyone capable of deploying Clang should be able to deploy its copies of ar/ranlib/etc. rdar://25254790 llvm-svn: 267075
* [MC, COFF] Add .reloc support for WinCOFFDavid Majnemer2016-01-191-2/+2
| | | | | | | This adds rudimentary support for a few relocations that we will use for the CodeView debug format. llvm-svn: 258216
* Implement .reloc (constant offset only) with support for R_MIPS_NONE and ↵Daniel Sanders2015-11-121-0/+4
| | | | | | | | | | | | | | | | R_MIPS_32. Summary: Support for R_MIPS_NONE allows us to parse MIPS16's usage of .reloc. R_MIPS_32 was included to be able to better test the directive. Targets can add their relocations by overriding MCAsmBackend::getFixupKind(). Subscribers: grosbach, rafael, majnemer, dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D13659 llvm-svn: 252888
* [MC] Allow backends to decide relaxation for unresolved fixups.Colin LeMahieu2015-05-301-19/+25
| | | | | | Differential Revision: http://reviews.llvm.org/D8217 llvm-svn: 238659
* Simplify a really complicated check for Arch == X86_64.Rafael Espindola2014-03-111-2/+1
| | | | | | | | | | | | The function hasReliableSymbolDifference had exactly one use in the MachO writer. It is also only true for X86_64. In fact, the comments refers to "Darwin x86_64" and everything else, so this makes the code match the comment. If this is to be abstracted again, it should be a property of TargetObjectWriter, like useAggressiveSymbolFolding. llvm-svn: 203605
* Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).Craig Topper2013-07-151-2/+2
| | | | llvm-svn: 186301
* MachO: direct-to-object attribute for data-in-code markers.Jim Grosbach2012-10-011-5/+2
| | | | | | | | | | The target backend can support data-in-code load commands even when the assembler doesn't, or vice-versa. Allow targets to opt-in for direct-to-object. PR13973. llvm-svn: 164974
* Tidy up. Trailing whitespace.Jim Grosbach2012-05-111-1/+1
| | | | llvm-svn: 156602
* Prune some includes and forward declarations.Craig Topper2012-03-261-0/+1
| | | | llvm-svn: 153429
* Section relative fixups are a coff concept, not a x86 one. Replace theRafael Espindola2011-12-241-1/+5
| | | | | | x86 specific reloc_coff_secrel32 with a generic FK_SecRel_4. llvm-svn: 147252
* This patch addresses gp relative fixups/relocations for jump tables.Akira Hatanaka2011-11-231-6/+10
| | | | llvm-svn: 145112
* Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng2011-07-251-0/+37
createMCAsmBackend. llvm-svn: 136010
OpenPOWER on IntegriCloud