aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAsmBackend.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-03-11Simplify a really complicated check for Arch == X86_64.Rafael Espindola1-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
2013-07-15Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).Craig Topper1-2/+2
llvm-svn: 186301
2012-10-01MachO: direct-to-object attribute for data-in-code markers.Jim Grosbach1-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
2012-05-11Tidy up. Trailing whitespace.Jim Grosbach1-1/+1
llvm-svn: 156602
2012-03-26Prune some includes and forward declarations.Craig Topper1-0/+1
llvm-svn: 153429
2011-12-24Section relative fixups are a coff concept, not a x86 one. Replace theRafael Espindola1-1/+5
x86 specific reloc_coff_secrel32 with a generic FK_SecRel_4. llvm-svn: 147252
2011-11-23This patch addresses gp relative fixups/relocations for jump tables.Akira Hatanaka1-6/+10
llvm-svn: 145112
2011-07-25Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng1-0/+37
createMCAsmBackend. llvm-svn: 136010