summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement MCAsmStreamer::EmitDwarfAdvanceFrameAddr.Rafael Espindola2011-04-301-22/+0
| | | | llvm-svn: 130585
* Factor a bit of code to MCStreamer::EmitLabel. Keep track of the lastRafael Espindola2011-04-271-4/+1
| | | | | | | | | | | | non private symbol. This will be use for handling foo: .cfi_startproc ... On OS X where we have to create a foo.eh symbol. llvm-svn: 130305
* No relocation produces a SLEB or ULEB, make sure they are handled in MC.Rafael Espindola2011-04-261-10/+12
| | | | llvm-svn: 130181
* Remove unused argument.Rafael Espindola2011-04-211-6/+4
| | | | llvm-svn: 129955
* malloc elimination: it's a bad idea to use raw_svector_ostream on aEli Friedman2011-04-181-1/+4
| | | | | | | | small heap-allocated SmallString because it unconditionally forces a malloc. (Revised version of r129688, with the necessary flush() call.) llvm-svn: 129716
* Revert r129688; it's breaking buildbots.Eli Friedman2011-04-181-3/+1
| | | | llvm-svn: 129689
* More malloc elimination: it's a bad idea to use raw_svector_ostream on aEli Friedman2011-04-181-1/+3
| | | | | | small heap-allocated SmallString because it unconditionally forces a malloc. llvm-svn: 129688
* Add constructors to MCElfStreamer and MCObjectStreamer to take an extra ↵Jan Sjödin2011-03-091-0/+7
| | | | | | MCAssembler * argument. llvm-svn: 127343
* Add some limited support for labels in org directives. Hopefully enough to fixRafael Espindola2011-02-201-1/+17
| | | | | | PR9245. llvm-svn: 126091
* Add support for pushsection and popsection. Patch by Joerg Sonnenberger.Rafael Espindola2011-02-161-8/+3
| | | | llvm-svn: 125629
* Model :upper16: and :lower16: as ARM specific MCTargetExpr. This is a stepEvan Cheng2011-01-131-1/+4
| | | | | | | | in the right direction. It eliminated some hacks and will unblock codegen work. But it's far from being done. It doesn't reject illegal expressions, e.g. (FOO - :lower16:BAR). It also doesn't work in Thumb2 mode at all. llvm-svn: 123369
* Relax address updates in the eh_frame section.Rafael Espindola2010-12-281-13/+36
| | | | llvm-svn: 122591
* Assert that the AddrDelta expression is really constant and wrap it in a setRafael Espindola2010-12-221-1/+7
| | | | | | if we have a lame assembler. llvm-svn: 122446
* Revert 122011, 122012, 122013, 122023 adding back an important optimization.Rafael Espindola2010-12-181-4/+4
| | | | | | I added a note, but suggestions on how to add a test are really welcome. llvm-svn: 122138
* MC/Assembler: Make the MCObjectWriter available through the lifetime of theDaniel Dunbar2010-12-171-4/+6
| | | | | | assembler. llvm-svn: 122031
* MC: Remove another dead MCAssembler argument, and update clients.Daniel Dunbar2010-12-171-4/+4
| | | | llvm-svn: 122013
* Fixed version of 121434 with no new memory leaks.Rafael Espindola2010-12-101-4/+10
| | | | llvm-svn: 121471
* Revert my previous patch to make the valgrind bots happy.Rafael Espindola2010-12-101-10/+4
| | | | llvm-svn: 121461
* Initial support for the cfi directives. This is just enough to getRafael Espindola2010-12-091-4/+10
| | | | | | | | | | | f: .cfi_startproc nop .cfi_endproc assembled (on ELF). llvm-svn: 121434
* Sorry for such a large commit. The summary is that only MachO cares about theRafael Espindola2010-12-071-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | actuall addresses in a .o file, so it is better to let the MachO writer compute it. This is good for two reasons. First, areas that shouldn't care about addresses now don't have access to it. Second, the layout of each section is independent. I should use this in a subsequent commit to speed it up. Most of the patch is just removing the section address computation. The two interesting parts are the change on how we handle padding in the end of sections and how MachO can get the address of a-b when a and b are in different sections. Since now the expression evaluation normally doesn't know the section address, it will think that a-b needs relocation and let the MachO writer know. Once it has computed the section addresses, it calls back the expression evaluation with the section addresses to resolve these expressions. The remaining problem is the handling of padding. Currently it will create a special alignment fragment at the end. Since that fragment doesn't update the alignment of the section, it needs the real address to be computed. Since now the layout will not compute a-b with a and b in different sections, the only effect that the special alignment fragment has is update the address size of the section. This can also be done by the MachO writer. llvm-svn: 121076
* Use references to simplify the code a bit.Rafael Espindola2010-12-061-4/+4
| | | | llvm-svn: 121050
* There are two reasons why we might want to useRafael Espindola2010-12-041-1/+1
| | | | | | | | | | | | | | | | foo = a - b .long foo instead of just .long a - b First, on darwin9 64 bits the assembler produces the wrong result. Second, if "a" is the end of the section all darwin assemblers (9, 10 and mc) will not consider a - b to be a constant but will if the dummy foo is created. Split how we handle these cases. The first one is something MC should take care of. The second one has to be handled by the caller. llvm-svn: 120889
* Make EmitIntValue more efficient and more like what we do for leb128. TheRafael Espindola2010-12-031-9/+7
| | | | | | difference is much smaller (about 0.3s) but significant. llvm-svn: 120787
* Do with uleb the same trick we now do with dwarf line/address advances. ThisRafael Espindola2010-12-031-0/+10
| | | | | | avoids creating leb128 fragments and speeds up the test in PR8711 to 33s. llvm-svn: 120774
* Try to resolve symbol differences early, and if successful create a plainRafael Espindola2010-12-031-0/+24
| | | | | | | data fragment. This reduces the time to assemble the test in 8711 from 60s to 54s. llvm-svn: 120767
* Use set directive for StartMinusEndExpr.Devang Patel2010-12-021-1/+1
| | | | | | This is a fix for llvm-gcc-i386-darwin9 buildbot failure. llvm-svn: 120742
* Move EmitValueToOffset to the ObjectStreamer.Rafael Espindola2010-12-021-0/+5
| | | | llvm-svn: 120691
* Add EmitInstToFragment to the generic object streamer.Rafael Espindola2010-12-021-0/+7
| | | | llvm-svn: 120690
* Move EmitValue to MCObjectStreamer.Rafael Espindola2010-11-281-0/+19
| | | | llvm-svn: 120269
* Fixed verson of r120245.Rafael Espindola2010-11-281-0/+19
| | | | | | Factor some duplicated code into MCObjectStreamer::EmitLabel. llvm-svn: 120248
* Revert previous patch while I debug the darwin bootstrap failure.Rafael Espindola2010-11-281-20/+0
| | | | llvm-svn: 120246
* Factor some duplicated code into MCObjectStreamer::EmitLabel.Rafael Espindola2010-11-281-0/+20
| | | | llvm-svn: 120245
* Add support for expressions in .sleb/.uleb directives.Rafael Espindola2010-11-021-0/+10
| | | | llvm-svn: 118023
* Move EmitInstruction to MCObjectStreamer so that ELF and MachO can share it.Rafael Espindola2010-11-011-0/+34
| | | | llvm-svn: 117925
* Implement .weakref.Rafael Espindola2010-11-011-0/+5
| | | | llvm-svn: 117911
* Avoid some Mach-O specific alignment being done on ELF.Rafael Espindola2010-09-221-2/+5
| | | | llvm-svn: 114594
* Add AsmParser support for the ELF .previous directive. Patch by Roman Divacky.Benjamin Kramer2010-09-021-0/+1
| | | | llvm-svn: 112849
* Plug the remaining MC leaks by giving MCObjectStreamer/MCAsmStreamer ↵Benjamin Kramer2010-07-291-0/+4
| | | | | | ownership of the TargetAsmBackend and the MCCodeEmitter. llvm-svn: 109767
* MC: Add WinCOFFStreamer implementation and merge common code from MachOMichael J. Spencer2010-07-191-0/+43
| | | | | | | | into MCObjectStreamer. Origonal Windows COFF implementation by Nathan Jedffords. llvm-svn: 108678
* MC: Lift SwitchSection() and Finish() into MCObjectStreamer.Daniel Dunbar2010-06-161-2/+17
| | | | llvm-svn: 106141
* MC: Factor out an MCObjectStreamer class, which will be shared by the concreteDaniel Dunbar2010-06-161-0/+24
object file format writers. llvm-svn: 106140
OpenPOWER on IntegriCloud