summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/DarwinTargetAsmInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename PaddedSize to AllocSize, in the hope that thisDuncan Sands2009-05-091-2/+2
| | | | | | | will make it more obvious what it represents, and stop it being confused with the StoreSize. llvm-svn: 71349
* Do not propagate ELF-specific stuff (data.rel) into other targets. This ↵Anton Korobeynikov2009-03-301-3/+0
| | | | | | simplifies code and also ensures correctness. llvm-svn: 68032
* Add data.rel stuffAnton Korobeynikov2009-03-301-0/+3
| | | | llvm-svn: 68031
* Introduce new linkage types linkonce_odr, weak_odr, common_odrDuncan Sands2009-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. llvm-svn: 66339
* Treat [1 x i8] zeroinitializer as a C string, placing such stuff intoAnton Korobeynikov2009-01-271-2/+2
| | | | | | | | | | | | mergeable string section. I don't see any bad impact of such decision (rather then placing it into mergeable const section, as it was before), but at least Darwin linker won't complain anymore. The problem in LLVM is that we don't have special type for string constants (like gcc does). Even more, we have two separate types: ConstatArray for non-null strings and ConstantAggregateZero for null stuff.... It's a bit weird :) llvm-svn: 63142
* Add the private linkage.Rafael Espindola2009-01-151-1/+1
| | | | llvm-svn: 62279
* Rename getABITypeSize to getTypePaddedSize, asDuncan Sands2009-01-121-2/+2
| | | | | | suggested by Chris. llvm-svn: 62099
* squash warnings.Devang Patel2009-01-051-0/+1
| | | | llvm-svn: 61707
* Refactor various TargetAsmInfo subclasses' TargetMachine members awayDan Gohman2008-11-031-7/+6
| | | | | | adding a TargetMachine member to the base TargetAsmInfo class instead. llvm-svn: 58624
* (re)Put const weak strings in appropriate section on Darwin.Dale Johannesen2008-10-081-1/+3
| | | | | | g++dg/abi/key2.C llvm-svn: 57309
* Rename isWeakForLinker to mayBeOverridden. Use itDuncan Sands2008-09-291-1/+1
| | | | | | | instead of hasWeakLinkage in a bunch of optimization passes. llvm-svn: 56782
* Get rid of ReadOnlySection duplicateAnton Korobeynikov2008-09-241-6/+6
| | | | llvm-svn: 56582
* Use named sections, where they should beAnton Korobeynikov2008-09-241-7/+5
| | | | llvm-svn: 56581
* Get rid of now unused {Four,Eight,Sixteen}ByteConstantSectionAnton Korobeynikov2008-09-241-8/+9
| | | | llvm-svn: 56580
* CleanupAnton Korobeynikov2008-09-241-1/+1
| | | | llvm-svn: 56578
* Cleanup, no functionality changeAnton Korobeynikov2008-09-241-2/+2
| | | | llvm-svn: 56576
* Get rid of duplicate char*/Section* DataSectionAnton Korobeynikov2008-09-241-1/+1
| | | | llvm-svn: 56575
* Get rid of duplicate char*/Section* TextSectionAnton Korobeynikov2008-09-241-1/+1
| | | | llvm-svn: 56574
* Move the uglier parts of deciding not to emit aDale Johannesen2008-09-091-0/+21
| | | | | | | | | UsedDirective for some symbols in llvm.used into Darwin-specific code. I've decided LessPrivateGlobal is potentially a useful abstraction and left it in the target-independent area, with improved comment. llvm-svn: 56024
* Undo most of r54519.Evan Cheng2008-08-081-9/+8
| | | | llvm-svn: 54534
* It's not legal to output a GV in a coalesced section if it's used in an ARM ↵Evan Cheng2008-08-081-8/+9
| | | | | | PIC relative constantpool. llvm-svn: 54519
* Add hook for constant pool section selection for darwin.Anton Korobeynikov2008-08-071-2/+20
| | | | llvm-svn: 54449
* Switch MIPS to new ELFTargetAsmInfo. Add few FIXMEs.Anton Korobeynikov2008-07-191-0/+1
| | | | llvm-svn: 53790
* Fix a FIXME :)Anton Korobeynikov2008-07-191-6/+5
| | | | llvm-svn: 53789
* Use generic ELFTargetAsmInfo and DarwinTargetAsmInfo for X86 codeAnton Korobeynikov2008-07-191-6/+6
| | | | llvm-svn: 53788
* Add TargetAsmInfo stuff for all darwin-based targetsAnton Korobeynikov2008-07-191-0/+129
llvm-svn: 53787
OpenPOWER on IntegriCloud