- Aug 02, 2009
-
-
Chris Lattner authored
no longer depends on TM! llvm-svn: 77863
-
Chris Lattner authored
llvm-svn: 77858
-
Chris Lattner authored
even considering #if 0 code. llvm-svn: 77856
-
Chris Lattner authored
getLSDASection() to be more specific. This makes it pretty obvious that the ELF LSDA section is being specified wrong in PIC mode. We're probably getting a lot of startup-time relocations to a readonly page, which is expensive and bad. Someone who cares about ELF C++ should investigate this. llvm-svn: 77847
-
Chris Lattner authored
TAI. llvm-svn: 77842
-
Chris Lattner authored
compute it based on what it knows. As part of this, rename getSectionForMergeableConstant to getSectionForConstant because it works for non-mergable constants also. The only functionality change from this is that Xcore will start dropping its jump tables into readonly section instead of data section in -static mode. This should be fine as the linker resolves the relocations. If this is a problem, let me know and we'll come up with another solution. llvm-svn: 77833
-
Chris Lattner authored
llvm-svn: 77820
-
- Jul 31, 2009
-
-
Chris Lattner authored
thing is #if0'd out anyway. Just simplify the code by reducing the interface. Not deleting this is essential for Bill's continuing happiness. llvm-svn: 77736
-
- Jul 28, 2009
-
-
Chris Lattner authored
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
-
- Jul 27, 2009
-
-
Chris Lattner authored
implementations that need it, rearrange ELFTAI. llvm-svn: 77236
-
Chris Lattner authored
not in mergable llvm-svn: 77210
-
Chris Lattner authored
llvm-svn: 77203
-
Chris Lattner authored
instead. llvm-svn: 77186
-
Chris Lattner authored
instead and drive things based off of that. llvm-svn: 77184
-
- Jul 26, 2009
-
-
Chris Lattner authored
'unnamed' bss section, but some impls would want a named one. Since they don't have consistent behavior, just make each target do their own thing, instead of doing something "sortof common" then having targets change immutable objects later. llvm-svn: 77165
-
Chris Lattner authored
just use a smallstring instead. llvm-svn: 77144
-
Chris Lattner authored
llvm-svn: 77143
-
Chris Lattner authored
section specified for it or not. llvm-svn: 77142
-
Chris Lattner authored
to its classification. llvm-svn: 77140
-
Chris Lattner authored
llvm-svn: 77138
-
Chris Lattner authored
llvm-svn: 77135
-
Chris Lattner authored
llvm-svn: 77134
-
Chris Lattner authored
simplify targets. llvm-svn: 77132
-
Chris Lattner authored
putting readonly constants in the readonly section if we have one. llvm-svn: 77131
-
Chris Lattner authored
group instead of a bunch of random unrelated ideas. Provide predicates to categorize a SectionKind into a group, and use them instead of getKind() throughout the code. This also renames a ton of SectionKinds to be more consistent and evocative, and adds a huge number of comments on the enums so that I will hopefully be able to remember how this stuff works long from now. llvm-svn: 77129
-
Chris Lattner authored
an enum. llvm-svn: 77096
-
- Jul 25, 2009
-
-
Chris Lattner authored
1. Spell SectionFlags::Writeable as "Writable". 2. Add predicates for deriving SectionFlags from SectionKinds. 3. Sink ELF-specific getSectionPrefixForUniqueGlobal impl into ELFTargetAsmInfo. 4. Fix SectionFlagsForGlobal to know that BSS/ThreadBSS has the BSS bit set (the real fix for PR4619). 5. Fix isSuitableForBSS to not put globals with explicit sections set in BSS (which was the reason #4 wasn't fixed earlier). 6. Remove my previous hack for PR4619. llvm-svn: 77085
-
Chris Lattner authored
llvm-svn: 77084
-
Chris Lattner authored
Thanks to Rafael for the great example. llvm-svn: 77083
-
- Jul 24, 2009
-
-
Chris Lattner authored
llvm-svn: 76999
-
Chris Lattner authored
previously virtual) function to being a static function in the .cpp file. llvm-svn: 76997
-
Chris Lattner authored
It's classifications now include elf-specific discriminators. Targets that don't have these features (like darwin and pecoff) simply treat data.rel like data, etc. llvm-svn: 76993
-
Chris Lattner authored
pass it in instead of recomputing it. llvm-svn: 76990
-
Chris Lattner authored
llvm-svn: 76989
-
Chris Lattner authored
llvm-svn: 76976
-
Chris Lattner authored
llvm-svn: 76975
-
Chris Lattner authored
into its own helper function. llvm-svn: 76974
-
Chris Lattner authored
virtual one. llvm-svn: 76973
-
Chris Lattner authored
llvm-svn: 76972
-
Chris Lattner authored
when we have a global with no section explicitly specified. llvm-svn: 76971
-