summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* fix a fixme by sinking various target-specific directives down into Chris Lattner2009-08-011-16/+13
| | | | | | the appropriate subclasses. llvm-svn: 77815
* coff also doesn't have a ReadOnlySection yet, (!)Chris Lattner2009-08-011-3/+0
| | | | llvm-svn: 77814
* coff doesn't set a .bss seciton, so this is dead.Chris Lattner2009-08-011-3/+0
| | | | llvm-svn: 77813
* it turns out that isWeak() was basically dead anyway. Kill off SectionInfo :-/Chris Lattner2009-08-011-44/+43
| | | | llvm-svn: 77812
* don't use isWeak anymore.Chris Lattner2009-08-011-4/+4
| | | | llvm-svn: 77810
* Change SectionKind to be a property that is true of a *section*, itChris Lattner2009-08-011-114/+132
| | | | | | | | | | | | | | | | | | should have no state that is specific to particular globals in the section. In this case, it means the removal of the "isWeak" and "ExplicitSection" bits. MCSection uses the new form of SectionKind. To handle isWeak, I introduced a new SectionInfo class, which is SectionKind + isWeak, and it is used by the part of the code generator that does classification of a specific global. The ExplicitSection disappears. It is moved onto MCSection as a new "IsDirective" bit. Since the Name of a section is either a section or directive, it makes sense to keep this bit in MCSection. Ultimately the creator of MCSection should canonicalize (e.g.) .text to whatever the actual section is. llvm-svn: 77803
* All MCSections are now required to have a SectionKind.Chris Lattner2009-08-011-1/+1
| | | | llvm-svn: 77787
* move emitUsedDirectiveFor to TargetLoweringObjectFile and rename it toChris Lattner2009-07-311-0/+23
| | | | | | | indicate that it is a predicate, not an emitter. This eliminates TAI dependencies on Mangler and GlobalValue. llvm-svn: 77726
* switch off of 'Section' onto MCSection. We're not properly usingChris Lattner2009-07-311-24/+23
| | | | | | MCSection subclasses yet, but this is a step in the right direction. llvm-svn: 77708
* refactor section construction in TLOF to be through an explicitChris Lattner2009-07-311-7/+6
| | | | | | initialize method, which can be called when an MCContext is available. llvm-svn: 77687
* fix PR4650: we only track sizes for certain objects, so only put somethingChris Lattner2009-07-311-1/+4
| | | | | | | | into the mergable section if it is one of our special cases. This could obviously be improved, but this is the minimal fix and restores us to the previous behavior. llvm-svn: 77679
* mingw uses .data and .text, not _data and _text.Chris Lattner2009-07-291-2/+2
| | | | llvm-svn: 77435
* fix PR4584 with a trivial patch now that the pieces are in place.Chris Lattner2009-07-291-3/+3
| | | | llvm-svn: 77434
* pass the mangler down into the various SectionForGlobal methods.Chris Lattner2009-07-291-9/+11
| | | | | | No functionality change. llvm-svn: 77432
* constant prop a utostr.Chris Lattner2009-07-291-2/+1
| | | | llvm-svn: 77430
* remove some completely wrong code. 1 is never < 16. It turns out that GCC ↵Chris Lattner2009-07-291-20/+10
| | | | | | appears to put strings of any length into the ELF cstring equivalent, so just rip out the code. llvm-svn: 77429
* Fix PR4639, a ELF-TLS regression from some of my refactoring.Chris Lattner2009-07-281-1/+1
| | | | llvm-svn: 77336
* the apple "ld_classic" linker doesn't support .literal16 in 32-bitChris Lattner2009-07-281-5/+12
| | | | | | | mode, and "ld64" (the default linker) falls back to it in -static mode. llvm-svn: 77334
* fix unused variable warningChris Lattner2009-07-281-1/+1
| | | | llvm-svn: 77326
* Rip all of the global variable lowering logic out of TargetAsmInfo. SinceChris Lattner2009-07-281-0/+647
it is highly specific to the object file that will be generated in the end, this introduces a new TargetLoweringObjectFile interface that is implemented for each of ELF/MachO/COFF/Alpha/PIC16 and XCore. Though still is still a brutal and ugly refactoring, this is a major step towards goodness. This patch also: 1. fixes a bunch of dangling pointer problems in the PIC16 backend. 2. disables the TargetLowering copy ctor which PIC16 was accidentally using. 3. gets us closer to xcore having its own crazy target section flags and pic16 not having to shadow sections with its own objects. 4. fixes wierdness where ELF targets would set CStringSection but not CStringSection_. Factor the code better. 5. fixes some bugs in string lowering on ELF targets. llvm-svn: 77294
OpenPOWER on IntegriCloud