summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFStreamer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Move TargetRegistry and TargetSelect from Target to Support where they belong.Evan Cheng2011-08-241-1/+1
| | | | | | These are strictly utilities for registering targets and components. llvm-svn: 138450
* Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng2011-07-251-6/+6
| | | | | | createMCAsmBackend. llvm-svn: 136010
* Move TargetAsmParser.h TargetAsmBackend.h and TargetAsmLexer.h to MC where ↵Evan Cheng2011-07-231-1/+1
| | | | | | they belong. llvm-svn: 135833
* Implement emission of all Win64 exception tables. Make the COFF streamer emitCharles Davis2011-05-221-0/+1
| | | | | | these tables. llvm-svn: 131833
* Make the COFF streamer emit unwind info when processing a .seh_handlerdataCharles Davis2011-05-221-0/+10
| | | | | | | | | | directive. Implement emission of Win64 EH unwind info. Pull in <cassert> in MCWin64EH.h so it can use the assert() macro. llvm-svn: 131832
* Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.Cameron Zwarich2011-02-251-18/+0
| | | | llvm-svn: 126488
* Enable DebugInfo support for COFF object files.Devang Patel2011-02-241-0/+18
| | | | | | Patch by Nathan Jeffords! llvm-svn: 126425
* Sorry for such a large commit. The summary is that only MachO cares about theRafael Espindola2010-12-071-1/+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
* Don't use PadSectionToAlignment on windows.Rafael Espindola2010-12-061-1/+1
| | | | llvm-svn: 120978
* Move EmitValueToOffset to the ObjectStreamer.Rafael Espindola2010-12-021-6/+0
| | | | llvm-svn: 120691
* Move EmitValue to MCObjectStreamer.Rafael Espindola2010-11-281-24/+0
| | | | llvm-svn: 120269
* Fixed verson of r120245.Rafael Espindola2010-11-281-18/+1
| | | | | | Factor some duplicated code into MCObjectStreamer::EmitLabel. llvm-svn: 120248
* Revert previous patch while I debug the darwin bootstrap failure.Rafael Espindola2010-11-281-0/+23
| | | | llvm-svn: 120246
* Factor some duplicated code into MCObjectStreamer::EmitLabel.Rafael Espindola2010-11-281-23/+0
| | | | llvm-svn: 120245
* Avoid code duplication in the many unsupported EmitGPRel32Value implementations.Rafael Espindola2010-11-281-5/+0
| | | | llvm-svn: 120243
* Define generic 1, 2 and 4 byte pc relative relocations. They are commonRafael Espindola2010-11-281-1/+1
| | | | | | and at least the 4 byte one will be needed to implement the .cfi_* directives. llvm-svn: 120240
* Add .loc methods to the streamer.Rafael Espindola2010-11-161-6/+0
| | | | | | | Next: Add support for the !HasDotLocAndDotFile case to the MCAsmStreamer and then switch codegen to use it. llvm-svn: 119384
* MC'ize the '.code 16' and '.thumb_func' ARM directives.Jim Grosbach2010-11-051-0/+5
| | | | llvm-svn: 118301
* Move EmitInstruction to MCObjectStreamer so that ELF and MachO can share it.Rafael Espindola2010-11-011-0/+7
| | | | llvm-svn: 117925
* MC-COFF: Add support for default-null weak externals.Michael J. Spencer2010-10-161-3/+5
| | | | llvm-svn: 116666
* MC-COFF: Implement InitSections. Fixes PR8335.Michael J. Spencer2010-10-091-0/+39
| | | | llvm-svn: 116151
* MC-COFF: Assert on non-coff sections.Michael J. Spencer2010-10-091-0/+16
| | | | llvm-svn: 116148
* Minor cosmetic change: fix DOSish \r\n.NAKAMURA Takumi2010-10-071-4/+4
| | | | llvm-svn: 115910
* MC-COFF: Fix symbol aliases. Fixes PR8251.Michael J. Spencer2010-10-071-5/+36
| | | | llvm-svn: 115909
* Avoid some Mach-O specific alignment being done on ELF.Rafael Espindola2010-09-221-1/+1
| | | | llvm-svn: 114594
* Add a InitSections method to the streamer interface.Rafael Espindola2010-09-151-0/+4
| | | | | | | | | | | | | | The ELF implementation now creates text, data and bss to match the gnu as behavior. The text streamer still has the old MachO specific behavior since the testsuite checks that it will error when a directive is given before a setting the current section for example. A nice benefit is that -n is not required anymore when producing ELF files. llvm-svn: 114027
* MC: Fix inconsistant naming in COFF object writer. Patch by Cameron Esfahani.Michael J. Spencer2010-08-251-3/+4
| | | | llvm-svn: 112076
* Add relax all support to the COFF object streamer.Michael J. Spencer2010-07-311-2/+5
| | | | llvm-svn: 109947
* MC: Add WinCOFFStreamer implementation and merge common code from MachOMichael J. Spencer2010-07-191-37/+184
| | | | | | | | into MCObjectStreamer. Origonal Windows COFF implementation by Nathan Jedffords. llvm-svn: 108678
* introduce WinCOFFStreamer.cpp, patch by Michael Spencer!Chris Lattner2010-07-111-0/+198
llvm-svn: 108102
OpenPOWER on IntegriCloud