Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵ | Evan Cheng | 2011-07-25 | 1 | -1/+1 | |
| | | | | | | createMCAsmBackend. llvm-svn: 136010 | |||||
* | Move TargetAsmParser.h TargetAsmBackend.h and TargetAsmLexer.h to MC where ↵ | Evan Cheng | 2011-07-23 | 1 | -1/+1 | |
| | | | | | | they belong. llvm-svn: 135833 | |||||
* | Refactor MachO relocation generaration into the Target directories. | Jim Grosbach | 2011-06-24 | 1 | -985/+19 | |
| | | | | | | | | | Move the target-specific RecordRelocation logic out of the generic MC MachObjectWriter and into the target-specific object writers. This allows nuking quite a bit of target knowledge from the supposedly target-independent bits in lib/MC. llvm-svn: 133844 | |||||
* | tidy up whitespace. | Jim Grosbach | 2011-06-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 133815 | |||||
* | Fixup info for Thumb2 unconditional branch. | Jim Grosbach | 2011-06-24 | 1 | -0/+1 | |
| | | | | | | rdar://9667872 llvm-svn: 133808 | |||||
* | Tidy up. | Jim Grosbach | 2011-06-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 133770 | |||||
* | 80-column violations. | Bill Wendling | 2011-06-23 | 1 | -12/+17 | |
| | | | | llvm-svn: 133668 | |||||
* | Move class methods out-of-line. This reduces the indentation, and is more in | Bill Wendling | 2011-06-22 | 1 | -1289/+1410 | |
| | | | | | | | line with LLVM's general coding style. No functionality change. llvm-svn: 133645 | |||||
* | MC/Mach-O: Update getSymbolAddress() to support evaluation of variables. | Daniel Dunbar | 2011-04-29 | 1 | -0/+27 | |
| | | | | llvm-svn: 130522 | |||||
* | MC/Mach-O: Allow emission of relocations for variables in some more cases. | Daniel Dunbar | 2011-04-29 | 1 | -19/+19 | |
| | | | | llvm-svn: 130520 | |||||
* | MC/Mach-O: Find section ordinal's by looking at the symbol, instead of ↵ | Daniel Dunbar | 2011-04-29 | 1 | -4/+8 | |
| | | | | | | assuming they are present in a fragment. llvm-svn: 130519 | |||||
* | Fix a ton of comment typos found by codespell. Patch by | Chris Lattner | 2011-04-15 | 1 | -2/+2 | |
| | | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558 | |||||
* | Fix a bug introduced by my patch yesterday: BL is a 4-byte instructions like ↵ | Owen Anderson | 2011-03-23 | 1 | -3/+2 | |
| | | | | | | BLX, rather than a 2-byte instruction like B. llvm-svn: 128169 | |||||
* | RIT_ARM_ThumbBranch32Bit relocations are not used and should never be generated. | Owen Anderson | 2011-03-22 | 1 | -6/+2 | |
| | | | | | | | This fixes kimwitu++, bullet, and tramp3dv4 with the ARM integrated assembler. Fixes <rdar://problem/9165738>. llvm-svn: 128117 | |||||
* | Silence compiler warning about case values not being in the enumerated type | Duncan Sands | 2011-03-15 | 1 | -1/+1 | |
| | | | | | | MCFixupKind. This is the same technique that is used elsewhere in MC. llvm-svn: 127676 | |||||
* | Fixes warnings emitted by Visual Studio 2010 compiler. | Oscar Fuentes | 2011-03-01 | 1 | -2/+2 | |
| | | | | | | Patch by Erik Olofsson! llvm-svn: 126796 | |||||
* | Teach ARM/MC/ELF to handle R_ARM_JUMP24 relocation type for conditional jumps. | Jason W Kim | 2011-02-04 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | (yes, this is different from R_ARM_CALL) - Adds a new method getARMBranchTargetOpValue() which handles the necessary distinction between the conditional and unconditional br/bl needed for ARM/ELF At least for ARM mode, the needed fixup for conditional versus unconditional br/bl is identical, but the ARM docs and existing ARM tools expect this reloc type... Added a few FIXME's for future naming fixups in ARMInstrInfo.td llvm-svn: 124895 | |||||
* | Fix bogus assert condition noticed by Csaba Raduly. | Evan Cheng | 2011-02-01 | 1 | -2/+2 | |
| | | | | llvm-svn: 124645 | |||||
* | Completed :lower16: / :upper16: support for movw / movt pairs on Darwin. | Evan Cheng | 2011-01-14 | 1 | -9/+126 | |
| | | | | | | | | - Fixed :upper16: fix up routine. It should be shifting down the top 16 bits first. - Added support for Thumb2 :lower16: and :upper16: fix up. - Added :upper16: and :lower16: relocation support to mach-o object writer. llvm-svn: 123424 | |||||
* | MC/Mach-O/Thumb: Select appropriate relocation types for Thumb. | Daniel Dunbar | 2010-12-27 | 1 | -9/+11 | |
| | | | | llvm-svn: 122583 | |||||
* | Merge IsFixupFullyResolved and IsSymbolRefDifferenceFullyResolved. We now | Rafael Espindola | 2010-12-24 | 1 | -124/+33 | |
| | | | | | | have a single point where targets test if a relocation is needed. llvm-svn: 122549 | |||||
* | MC/Mach-O/ARM: Start handling some Thumb branches. | Daniel Dunbar | 2010-12-24 | 1 | -0/+14 | |
| | | | | llvm-svn: 122547 | |||||
* | MC/Mach-O/ARM: Don't try to use scattered relocs for BR24 fixups. | Daniel Dunbar | 2010-12-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 122441 | |||||
* | Fix another conditional expression mismatched enum type warning. | Matt Beaumont-Gay | 2010-12-22 | 1 | -1/+2 | |
| | | | | llvm-svn: 122419 | |||||
* | MC/Mach-O/ARM: We always use the SECTDIFF reloc type on ARM, which is | Daniel Dunbar | 2010-12-22 | 1 | -6/+1 | |
| | | | | | | esp. important given that the LOCAL_SECTDIFF enumeration got redefined. llvm-svn: 122412 | |||||
* | MC/Mach-O/ARM: Clone off an ARM version of RecordScatteredRelocation until I ↵ | Daniel Dunbar | 2010-12-22 | 1 | -4/+68 | |
| | | | | | | figure out how it is supposed to work. llvm-svn: 122410 | |||||
* | MC/Mach-O: Return to reporting errors if we see unexpected fixup kinds. | Daniel Dunbar | 2010-12-22 | 1 | -6/+3 | |
| | | | | llvm-svn: 122409 | |||||
* | MC/Mach-O/ARM: Recognize generic _Data_N fixup kinds. | Daniel Dunbar | 2010-12-22 | 1 | -0/+16 | |
| | | | | llvm-svn: 122408 | |||||
* | MC/Mach-O/ARM: Add enough relocation logic to get BR24 relocations. | Daniel Dunbar | 2010-12-22 | 1 | -3/+26 | |
| | | | | llvm-svn: 122407 | |||||
* | MC/Mach-O/ARM: Fix thinko. | Daniel Dunbar | 2010-12-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 122406 | |||||
* | MC/Mach-O/ARM: Stub out RecordARMRelocation, which is mostly a copy of | Daniel Dunbar | 2010-12-22 | 1 | -1/+78 | |
| | | | | | | RecordRelocation with lots of FIXMEs. llvm-svn: 122402 | |||||
* | Simplify. | Daniel Dunbar | 2010-12-22 | 1 | -6/+5 | |
| | | | | llvm-svn: 122401 | |||||
* | MC/Mach-O: Split out RecordARMRelocation for now, it is weird enough it isn't | Daniel Dunbar | 2010-12-22 | 1 | -0/+15 | |
| | | | | | | | clear how to keep in the generic path (yet). - Will revisit when it actually works. llvm-svn: 122400 | |||||
* | GCC objects to the two sides of a conditional expression having different enum | Matt Beaumont-Gay | 2010-12-21 | 1 | -2/+2 | |
| | | | | | | | types, but they're just getting converted to unsigned anyway, so cast first (and ask questions later). llvm-svn: 122377 | |||||
* | MC/Mach-O: Shuffle enums a bit to make it harder to inadvertently use the wrong | Daniel Dunbar | 2010-12-21 | 1 | -7/+8 | |
| | | | | | | type. llvm-svn: 122334 | |||||
* | Merge isAbsolute into IsSymbolRefDifferenceFullyResolved. | Rafael Espindola | 2010-12-18 | 1 | -7/+5 | |
| | | | | llvm-svn: 122148 | |||||
* | Remove the MCObjectFormat class. | Rafael Espindola | 2010-12-18 | 1 | -0/+6 | |
| | | | | llvm-svn: 122147 | |||||
* | MC/Mach-O: On second thought, use a custom hook for enabling aggressive | Daniel Dunbar | 2010-12-17 | 1 | -0/+3 | |
| | | | | | | | | | | IsSymbolRefDifferenceFullyResolved, it turns out this does change behavior on enough cases for x86-32 that I would rather wait a bit on it. - In practice, we will want to change this eventually because it only means we generate less relocations (it also eliminates the need for the horrible '.set' hack that Darwin requires in some places). llvm-svn: 122042 | |||||
* | MC/Mach-O: Implement IsSymbolRefDifferenceFullyResolved. | Daniel Dunbar | 2010-12-17 | 1 | -0/+25 | |
| | | | | | | | | - Unlike for fixups, we always do the "reliable" thing (not just for x86_64). - Since Darwin 'as' would typically reject things that using this will allow, we don't need to worry about compatibility. llvm-svn: 122038 | |||||
* | MC/ObjectWriter: Add a new IsSymbolRefDifferenceFullyResolved target format ↵ | Daniel Dunbar | 2010-12-17 | 1 | -0/+6 | |
| | | | | | | | | specific hook. - Currently just has stub implementations for Mach-O, ELF, and COFF. llvm-svn: 122037 | |||||
* | MC/Assembler: Strip out object writer arguments, now that it is always available | Daniel Dunbar | 2010-12-17 | 1 | -1/+1 | |
| | | | | | | -- and remove FIXME asking for the same! llvm-svn: 122032 | |||||
* | MC/Target: Remove HasScatteredSymbols target hook variable, which has been | Daniel Dunbar | 2010-12-17 | 1 | -5/+0 | |
| | | | | | | superceded and was effectively dead. llvm-svn: 122024 | |||||
* | MC/Mach-O: Lift some MachObjectWriter arguments into the target specific | Daniel Dunbar | 2010-12-16 | 1 | -31/+29 | |
| | | | | | | interface. llvm-svn: 121981 | |||||
* | MC/Mach-O: Stub out explicit MCMachObjectTargetWriter interface. | Daniel Dunbar | 2010-12-16 | 1 | -16/+23 | |
| | | | | llvm-svn: 121973 | |||||
* | MC/Mach-O: Move createMachObjectWriter into MCMachObjectWriter.h. | Daniel Dunbar | 2010-12-16 | 1 | -0/+1 | |
| | | | | llvm-svn: 121971 | |||||
* | MC/Mach-O: Use fixup info instead of hard coded list. | Daniel Dunbar | 2010-12-16 | 1 | -21/+19 | |
| | | | | llvm-svn: 121970 | |||||
* | Fix absolute recording of differences of symbols in two sections. Reduced ↵ | Rafael Espindola | 2010-12-07 | 1 | -0/+11 | |
| | | | | | | from ctor_dtor_count-2.cpp. llvm-svn: 121152 | |||||
* | Fix relocations with weak definitions. | Rafael Espindola | 2010-12-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 121114 | |||||
* | Fix pcrel relocations that cross sections. | Rafael Espindola | 2010-12-07 | 1 | -2/+2 | |
| | | | | llvm-svn: 121107 | |||||
* | Fix a crash reduced from gcc produced assembly. | Rafael Espindola | 2010-12-07 | 1 | -8/+4 | |
| | | | | llvm-svn: 121085 |