summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Align Win64 EH Table sections to 4 bytes.Charles Davis2011-05-261-0/+2
| | | | llvm-svn: 132111
* Explain FIXME.Rafael Espindola2011-05-241-4/+5
| | | | llvm-svn: 131952
* Fix the defaults for .eh_frame. We were marking it as writable.Rafael Espindola2011-05-241-2/+2
| | | | llvm-svn: 131951
* Fix typo. When will I learn?Charles Davis2011-05-201-1/+0
| | | | llvm-svn: 131765
* Add .pdata and .xdata sections to the COFF TLOF implementation.Charles Davis2011-05-201-0/+15
| | | | llvm-svn: 131763
* Remove a flag that would set the ".eh" symbol as .globl. MachO was the only oneBill Wendling2011-05-051-5/+0
| | | | | | | | who used this flag, and it now emits CFI and doesn't emit this anymore. All other targets left this flag "false". <rdar://problem/8486371> llvm-svn: 130918
* GCC uses a different encoding of pointers in the FDE when usingRafael Espindola2011-05-011-1/+1
| | | | | | -fno-dwarf2-cfi-asm. Implement the same behavior. llvm-svn: 130637
* Remove unnecessary argument.Rafael Espindola2011-04-271-2/+2
| | | | llvm-svn: 130343
* Rename getPersonalityPICSymbol to getCFIPersonalitySymbol, document it, andRafael Espindola2011-04-271-5/+42
| | | | | | | | | | | | | | | | | | give it a bit more responsibility. Also implement it for MachO. If hacked to use cfi, 32 bit MachO will produce .cfi_personality 155, L___gxx_personality_v0$non_lazy_ptr and 64 bit will produce .cfi_presonality ___gxx_personality_v0 The general idea is that .cfi_personality gets passed the final symbol. It is up to codegen to produce it if using indirect representation (like 32 bit MachO), but it is up to MC to decide which relocations to create. llvm-svn: 130341
* Fix indentation.Rafael Espindola2011-04-271-21/+21
| | | | llvm-svn: 130331
* Remove unused arguments.Rafael Espindola2011-04-201-4/+2
| | | | llvm-svn: 129844
* ADT/Triple: Renambe isOSX... methods to isMacOSX for consistency with the OSDaniel Dunbar2011-04-201-1/+1
| | | | | | triple component. llvm-svn: 129838
* CodeGen: Eliminate a use of getDarwinMajorNumber().Daniel Dunbar2011-04-191-11/+3
| | | | | | | | | - There is a minor semantic change here (evidenced by the test change) for Darwin triples that have no version component. I debated changing the default behavior of isOSVersionLT, but decided it made more sense for triples to be explicit. llvm-svn: 129802
* Put each personality function in a section. This fixes the gnu ld warning:Rafael Espindola2011-04-161-0/+33
| | | | | | error in foo.o; no .eh_frame_hdr table will be created. llvm-svn: 129635
* Reapply 127939 since Daniel fixed the breakage. <rdar://problem/9012638>Stuart Hastings2011-03-191-7/+4
| | | | llvm-svn: 127944
* Revert 127939. <rdar://problem/9012638>Stuart Hastings2011-03-191-4/+7
| | | | llvm-svn: 127943
* Revise r126127 to address Daniel's comments. <rdar://problem/9012638>Stuart Hastings2011-03-191-7/+4
| | | | llvm-svn: 127939
* Fix llvm-gcc bootstrap with gnu ld.Rafael Espindola2011-02-241-0/+7
| | | | | | | | | | | The problem was codegen guessing the wrong values and printing .section .eh_frame,"aMS",@progbits,4 It is not clear at all if Codegen should try to guess, MC is the one that should know the default flags. llvm-svn: 126421
* Revert r125960, it's breaking darwin10 bootstrap.Eric Christopher2011-02-211-4/+8
| | | | llvm-svn: 126163
* Fix to correctly support attribute((section("__DATA, __common"))).Stuart Hastings2011-02-211-1/+10
| | | | | | Radar 9012638. llvm-svn: 126127
* Reapply r114997 now that the buildbots have been updated.Bill Wendling2011-02-181-8/+4
| | | | llvm-svn: 125960
* Switch llvm to using comdats. For now always use groups with a singleRafael Espindola2011-02-141-23/+9
| | | | | | section. llvm-svn: 125526
* Delay the creation of eh_frame so that the user can change the defaults.Rafael Espindola2011-01-231-20/+23
| | | | | | Add support for SHT_X86_64_UNWIND. llvm-svn: 124059
* Remove more duplicated code.Rafael Espindola2011-01-231-29/+29
| | | | llvm-svn: 124056
* Remove duplicated code.Rafael Espindola2011-01-231-34/+35
| | | | llvm-svn: 124054
* Fixed version of 121434 with no new memory leaks.Rafael Espindola2010-12-101-1/+1
| | | | llvm-svn: 121471
* Revert my previous patch to make the valgrind bots happy.Rafael Espindola2010-12-101-1/+1
| | | | llvm-svn: 121461
* Initial support for the cfi directives. This is just enough to getRafael Espindola2010-12-091-1/+1
| | | | | | | | | | | f: .cfi_startproc nop .cfi_endproc assembled (on ELF). llvm-svn: 121434
* Fixed version of 118639 with an extra assert to catch similar problemsRafael Espindola2010-11-091-1/+1
| | | | | | earlier. Implicit bool -> int conversions are evil! llvm-svn: 118651
* COFF: Add IMAGE_SCN_MEM_READ to text sections.Michael J. Spencer2010-10-271-0/+1
| | | | | | | | There are currently 100 references to COFF::IMAGE_SCN in 6 files and 11 different functions. Section to attribute mapping really needs to happen in one place to avoid problems like this. llvm-svn: 117473
* Fix whitespace.Michael J. Spencer2010-10-271-15/+15
| | | | llvm-svn: 117472
* lib/CodeGen/TargetLoweringObjectFileImpl.cpp: Tweak to emit ↵NAKAMURA Takumi2010-10-191-5/+5
| | | | | | | | ".{section}${name}" instead of ".{section}$linkonce_{name}" for linkonce sections. It seems GNU ld/PECOFF relies on section names, linking with g++'s libstdc++.a would fail. llvm-svn: 116791
* Do not check that the bodies of two defs of same linkonce global are the same.Anton Korobeynikov2010-10-081-1/+1
| | | | | | | Such a check does not make any sense in presense of inlining and other compiler-dependent stuff. This should fix bunch of warnings on mingw32. llvm-svn: 116113
* Revert r114997. It was causing a failure on darwin10-selfhost.Bill Wendling2010-09-281-5/+13
| | | | llvm-svn: 115002
* Fix a FIXME. _foo.eh symbols are currently always exported so that the linkerBill Wendling2010-09-281-13/+5
| | | | | | knows about them. This is not necessary on 10.6 and later. llvm-svn: 114997
* the latest assembler that runs on powerpc 10.4 machines doesn'tChris Lattner2010-09-271-0/+14
| | | | | | | support aligned comm. Detect when compiling for 10.4 and don't emit an alignment for comm. THis will hopefully fix PR8198. llvm-svn: 114817
* two changes:Chris Lattner2010-08-301-5/+0
| | | | | | | | | | | | | 1) nuke ConstDataCoalSection, which is dead. 2) revise my previous patch for rdar://8018335, which was completely wrong. Specifically, it doesn't make sense to mark __TEXT,__const_coal as PURE_INSTRUCTIONS, because it is for readonly data. templates (it turns out) go to const_coal_nt. The real fix for rdar://8018335 was to give ConstTextCoalSection a section kind of ReadOnly instead of Text. llvm-svn: 112496
* fix the definitions of ConstTextCoalSection/ConstDataCoalSectionChris Lattner2010-07-151-2/+3
| | | | | | | | | | | to keep "Text" in sync with the "pure instructions" section attribute. Lack of this attribute was preventing the assembler from emitting multibyte noops instructions for templates (and inlines, and other coalesced stuff) and was causing the assembler to mismatch .o files. This fixes rdar://8018335 llvm-svn: 108461
* Fix a major regression on COFF targets introduced by r103267: 'discardable' ↵Anton Korobeynikov2010-07-061-1/+1
| | | | | | | | section means that it is used only during the program load and can be discarded afterwards. This way *only* debug sections can be discarded, but not the opposite. Seems like the copy-and-pasto from ELF code, since there it contains the reverse flag ('alloc'). llvm-svn: 107658
* MC: Move COFF enumeration constants to llvm/Support/COFF.h, patch by MichaelDaniel Dunbar2010-07-011-55/+55
| | | | | | Spencer! llvm-svn: 107418
* Revert r107205 and r107207.Bill Wendling2010-06-291-4/+3
| | | | llvm-svn: 107215
* Introducing the "linker_weak" linkage type. This will be used for Objective-CBill Wendling2010-06-291-3/+4
| | | | | | | | | | | | | | | | | | | metadata types which should be marked as "weak", but which the linker will remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". llvm-svn: 107205
* Add support for initialized global data for darwin tls. Update commentsEric Christopher2010-05-251-3/+2
| | | | | | and testcases accordingly. llvm-svn: 104635
* Add full bss data support for darwin tls variables.Eric Christopher2010-05-221-2/+8
| | | | llvm-svn: 104414
* More data/parsing support for tls directives. Add a few more testcasesEric Christopher2010-05-171-0/+6
| | | | | | and cleanup comments as well. llvm-svn: 103985
* Add some section and constant support for darwin TLS.Eric Christopher2010-05-171-1/+15
| | | | llvm-svn: 103974
* add COFF support for COMDAT sections, patch by Nathan Jeffords!Chris Lattner2010-05-071-4/+16
| | | | llvm-svn: 103304
* switch MCSectionCOFF from a syntactic to semantic representation,Chris Lattner2010-05-071-54/+115
| | | | | | patch by Peter Housel! llvm-svn: 103267
* add llvm codegen support for -ffunction-sections and -fdata-sections,Chris Lattner2010-04-131-2/+36
| | | | | | patch by Sylvere Teissier! llvm-svn: 101106
* delete a forwarding function.Chris Lattner2010-04-081-89/+87
| | | | llvm-svn: 100815
OpenPOWER on IntegriCloud