Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | MC/Mach-O: Reverse order of SymbolData scanning when emitting instructions. | Daniel Dunbar | 2010-05-17 | 1 | -1/+1 | |
| | | | | | | | - This fixes a string table mismatch with 'as' when two new symbols are defined in a single instruction. llvm-svn: 103979 | |||||
* | MC/Mach-O: Fix some differences in symbol flag handling. | Daniel Dunbar | 2010-05-17 | 1 | -2/+15 | |
| | | | | | | | | | | | | | - Don't clear weak reference flag, 'as' was only "trying" to do this, it wasn't actually succeeding. - Clear the "lazy bound" bit when we mark something external. This corresponds roughly to the lazy clearing of the bit that 'as' implements in symbol_table_lookup. - The exact meaning of these flags appears pretty loose, since 'as' isn't very consistent. For now we just try to match 'as', we will clean this up one day hopefully. llvm-svn: 103964 | |||||
* | Add AsmParser support for darwin tbss directive. | Eric Christopher | 2010-05-14 | 1 | -0/+7 | |
| | | | | | | Nothing uses this yet. llvm-svn: 103757 | |||||
* | MC: Move MCAlignFragment::EmitNops value out of the constructor. | Daniel Dunbar | 2010-05-12 | 1 | -6/+5 | |
| | | | | llvm-svn: 103665 | |||||
* | MC: Eliminate MCZeroFillFragment, it is no longer needed. | Daniel Dunbar | 2010-05-12 | 1 | -1/+1 | |
| | | | | llvm-svn: 103664 | |||||
* | MC: Drop support for alignment in ZeroFill fragment, we can just use | Daniel Dunbar | 2010-05-12 | 1 | -1/+6 | |
| | | | | | | MCAlignFragments for this. llvm-svn: 103661 | |||||
* | MC/Mach-O: Explicitly track atoms, as represented by their defining symbol, ↵ | Daniel Dunbar | 2010-05-10 | 1 | -8/+36 | |
| | | | | | | for each fragment (not yet used). llvm-svn: 103438 | |||||
* | break coff symbol definition stuff out into proper MCStreamer callbacks, | Chris Lattner | 2010-05-08 | 1 | -0/+12 | |
| | | | | | | patch by Nathan Jeffords! llvm-svn: 103346 | |||||
* | Fix i386 relocations to Weak Definitions. The relocation entries should be | Kevin Enderby | 2010-05-07 | 1 | -19/+1 | |
| | | | | | | | external and the item to be relocated should not have the address of the symbol added in. llvm-svn: 103302 | |||||
* | MC/Mach-O: Mark absolute variable's appropriately, and add Mach-O support for | Daniel Dunbar | 2010-05-05 | 1 | -1/+0 | |
| | | | | | | | writing them. - <rdar://problem/7885351> integrated assembler broken for i386 objc code llvm-svn: 103112 | |||||
* | MC: Reject attempts to define a variable symbol. | Daniel Dunbar | 2010-05-05 | 1 | -4/+2 | |
| | | | | llvm-svn: 103111 | |||||
* | MC: Rename MCSymbol::{g,s}etValue -> MCSymbol::{g,s}etVariableValue. | Daniel Dunbar | 2010-05-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 103095 | |||||
* | llvm-mc: Add a -mc-relax-all option, which relaxes every fixup. We always need | Daniel Dunbar | 2010-03-25 | 1 | -2/+8 | |
| | | | | | | | exactly two passes in that case, and don't ever need to recompute any layout, so this is a nice baseline for relaxation performance. llvm-svn: 99563 | |||||
* | MC: Switch to using MCInst fragments to do relaxation. | Daniel Dunbar | 2010-03-23 | 1 | -0/+28 | |
| | | | | | | Also, both MCMachOStreamer and MCAssembler are now target independent! llvm-svn: 99256 | |||||
* | MC: Add TargetAsmBackend::MayNeedRelaxation, for checking whether a ↵ | Daniel Dunbar | 2010-03-23 | 1 | -4/+11 | |
| | | | | | | particular instruction + fixups might need relaxation. llvm-svn: 99249 | |||||
* | MC: Add TargetAsmBackend::WriteNopData and use to eliminate some target ↵ | Daniel Dunbar | 2010-03-23 | 1 | -2/+1 | |
| | | | | | | dependencies in MCMachOStreamer and MCAssembler. llvm-svn: 99248 | |||||
* | MC: Add MCInstFragment, not used yet. | Daniel Dunbar | 2010-03-22 | 1 | -0/+3 | |
| | | | | llvm-svn: 99229 | |||||
* | MC/Mach-O: Factor out getOrCreateDataFragment(). | Daniel Dunbar | 2010-03-22 | 1 | -16/+18 | |
| | | | | llvm-svn: 99204 | |||||
* | MC: Sink code emitter into MCAssembler. | Daniel Dunbar | 2010-03-19 | 1 | -6/+2 | |
| | | | | llvm-svn: 98953 | |||||
* | MC: Fix a crash on invalid, attempting to evaluate undefined symbols. | Daniel Dunbar | 2010-03-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 98464 | |||||
* | MC: Add MCAssembler::addFixup, which enforces that fixups are added in order. | Daniel Dunbar | 2010-03-12 | 1 | -6/+4 | |
| | | | | llvm-svn: 98379 | |||||
* | MC: Provide MCAssembler with a TargetAsmBackend. | Daniel Dunbar | 2010-03-11 | 1 | -5/+6 | |
| | | | | llvm-svn: 98222 | |||||
* | MC: Move the backend section and symbol data maps to MCAssembler. | Daniel Dunbar | 2010-03-10 | 1 | -30/+11 | |
| | | | | llvm-svn: 98186 | |||||
* | Remove unneeded includes. | Daniel Dunbar | 2010-03-10 | 1 | -1/+0 | |
| | | | | llvm-svn: 98167 | |||||
* | This is the first patch to put the needed bits in place to eventually allow code | Kevin Enderby | 2010-02-23 | 1 | -1/+16 | |
| | | | | | | | | | | | to be aligned with optimal nops. This patch does not change any functionality and when the compiler is changed to use EmitCodeAlignment() it should also not change the resulting output. Once the compiler change is made and everything looks good the next patch with the table of optimal X86 nops will be added to WriteNopData() changing the output. There are many FIXMEs in this patch which will be removed when we have better target hooks (coming soon I hear). llvm-svn: 96963 | |||||
* | MC/Mach-O: Remove non-sensical comment, and add a missing AddValueSymbols call. | Daniel Dunbar | 2010-02-22 | 1 | -3/+1 | |
| | | | | llvm-svn: 96809 | |||||
* | MC/Mach-O: Start emitting fixups/relocations for instructions. | Daniel Dunbar | 2010-02-13 | 1 | -2/+13 | |
| | | | | llvm-svn: 96095 | |||||
* | MCAssembler: Switch MCAsmFixup to storing MCFixupKind instead of just a size. | Daniel Dunbar | 2010-02-13 | 1 | -1/+2 | |
| | | | | llvm-svn: 96094 | |||||
* | MC/Mach-O: Implement EmitValue using data fragments + fixups instead of fill ↵ | Daniel Dunbar | 2010-02-13 | 1 | -1/+17 | |
| | | | | | | fragment. llvm-svn: 96091 | |||||
* | MC: First cut at MCFixup, for getting fixup/relocation information out of an ↵ | Daniel Dunbar | 2010-02-09 | 1 | -1/+2 | |
| | | | | | | MCCodeEmitter. llvm-svn: 95708 | |||||
* | add scaffolding for target-specific MCExprs. | Chris Lattner | 2010-02-08 | 1 | -0/+1 | |
| | | | | llvm-svn: 95559 | |||||
* | MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections. | Daniel Dunbar | 2010-02-02 | 1 | -2/+2 | |
| | | | | llvm-svn: 95135 | |||||
* | mcstreamerize gprel32 emission. | Chris Lattner | 2010-01-25 | 1 | -4/+3 | |
| | | | | llvm-svn: 94452 | |||||
* | mcstreamerize .file and .file. This also fixes an issue where the | Chris Lattner | 2010-01-25 | 1 | -0/+8 | |
| | | | | | | | normal form of .file would fail if the filename had a weird character in it. llvm-svn: 94437 | |||||
* | add symbol attribute support for the ELF .type directive. | Chris Lattner | 2010-01-25 | 1 | -0/+6 | |
| | | | | llvm-svn: 94435 | |||||
* | emit the .size directive for global variables on ELF through | Chris Lattner | 2010-01-25 | 1 | -0/+3 | |
| | | | | | | mcstreamer. llvm-svn: 94416 | |||||
* | mcize lcomm, simplify .comm, extend both to support 64-bit sizes. | Chris Lattner | 2010-01-23 | 1 | -2/+5 | |
| | | | | llvm-svn: 94299 | |||||
* | move the various directive enums out of the MCStreamer class | Chris Lattner | 2010-01-23 | 1 | -32/+20 | |
| | | | | | | into a new MCDirectives.h file. llvm-svn: 94294 | |||||
* | mcstreamerize .no_dead_strip and .reference for static ctors/dtors. | Chris Lattner | 2010-01-23 | 1 | -0/+1 | |
| | | | | llvm-svn: 94290 | |||||
* | Generalize mcasmstreamer data emission APIs to take an address space | Chris Lattner | 2010-01-19 | 1 | -5/+6 | |
| | | | | | | identifier. There is no way to work around it. llvm-svn: 93896 | |||||
* | Add a note for the macho streamer and remove a used of the mangler from the ↵ | Nate Begeman | 2010-01-17 | 1 | -0/+2 | |
| | | | | | | soon to be defunct machowriter pass. llvm-svn: 93670 | |||||
* | Pass StringRef by value. | Daniel Dunbar | 2009-11-06 | 1 | -2/+2 | |
| | | | | llvm-svn: 86251 | |||||
* | MC: Set symbol values in MachO MCStreamer. | Daniel Dunbar | 2009-10-16 | 1 | -1/+3 | |
| | | | | llvm-svn: 84236 | |||||
* | MC: Switch assembler API to using MCExpr instead of MCValue. | Daniel Dunbar | 2009-10-16 | 1 | -12/+2 | |
| | | | | llvm-svn: 84234 | |||||
* | MC: Remove unneeded context argument to MCExpr::Evaluate*. | Daniel Dunbar | 2009-10-16 | 1 | -2/+1 | |
| | | | | llvm-svn: 84233 | |||||
* | llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues. | Daniel Dunbar | 2009-08-31 | 1 | -16/+20 | |
| | | | | llvm-svn: 80578 | |||||
* | llvm-mc: Simplify EmitAssignment ('.set' is identical to '='). | Daniel Dunbar | 2009-08-31 | 1 | -5/+2 | |
| | | | | llvm-svn: 80577 | |||||
* | llvm-mc: Switch MCInst to storing an MCExpr* instead of an MCValue. | Daniel Dunbar | 2009-08-31 | 1 | -2/+27 | |
| | | | | | | Also, use MCInst::print instead of custom code in MCAsmPrinter. llvm-svn: 80575 | |||||
* | llvm-mc: Make MCSymbolData symbol member const. | Daniel Dunbar | 2009-08-31 | 1 | -1/+1 | |
| | | | | llvm-svn: 80573 | |||||
* | llvm-mc: Add MCContext to MCAssembler. | Daniel Dunbar | 2009-08-31 | 1 | -1/+1 | |
| | | | | llvm-svn: 80572 |