summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename createAsmInfo to createMCAsmInfo and move registration code to ↵Evan Cheng2011-07-141-58/+0
| | | | | | MCTargetDesc to prepare for next round of changes. llvm-svn: 135219
* Move PPC Linux to CFI.Rafael Espindola2011-05-051-1/+1
| | | | llvm-svn: 130951
* Add 130690 back.Rafael Espindola2011-05-021-1/+1
| | | | llvm-svn: 130693
* Revert while I debug the tests that use march but not mtriple.Rafael Espindola2011-05-021-1/+1
| | | | llvm-svn: 130691
* Move ppc OS X to cfi too. I am building it on an old ppc mini, but it will ↵Rafael Espindola2011-05-021-1/+1
| | | | | | take some time. llvm-svn: 130690
* Add a possibility to switch between CFI directives- and table-based frame ↵Anton Korobeynikov2011-01-141-2/+2
| | | | | | description emission. Currently all the backends use table-based stuff. llvm-svn: 123476
* Second try at making direct object emission produce the same resultsRafael Espindola2010-12-061-3/+0
| | | | | | | as llc + llvm-mc. This time ELF is not changed and I tested that llvm-gcc bootstrap on darwin10 using darwin9's assembler and linker. llvm-svn: 121006
* There are two reasons why we might want to useRafael Espindola2010-12-041-0/+4
| | | | | | | | | | | | | | | | foo = a - b .long foo instead of just .long a - b First, on darwin9 64 bits the assembler produces the wrong result. Second, if "a" is the end of the section all darwin assemblers (9, 10 and mc) will not consider a - b to be a constant but will if the dummy foo is created. Split how we handle these cases. The first one is something MC should take care of. The second one has to be handled by the caller. llvm-svn: 120889
* eliminate the magic AbsoluteDebugSectionOffsets MAI hook,Chris Lattner2010-04-041-1/+0
| | | | | | | | | which is really a property of the section being referenced. Add a predicate to MCSection to replace it. Yay for reduction in magic. llvm-svn: 100367
* don't reset the default.Chris Lattner2010-04-041-1/+0
| | | | llvm-svn: 100352
* Fix alignment on ppc linux. This fixes the build of crtend.oRafael Espindola2010-02-061-0/+3
| | | | llvm-svn: 95477
* Eliminate SetDirective, and replace it with HasSetDirective.Chris Lattner2010-01-261-1/+0
| | | | | | | | | | | Default HasSetDirective to true, since most targets have it. The targets that claim to not have it probably do, or it is spelled differently. These include Blackfin, Mips, Alpha, and PIC16. All of these except pic16 are normal ELF targets, so they almost certainly have it. llvm-svn: 94585
* linux/ppc does use alignment in bytes, not pow-2. This fixes PR6129.Chris Lattner2010-01-241-1/+0
| | | | | | | | It looks like linux/arm and linux/mips have the same setting, which are probably wrong. Someone who cares about ARM and MIPS should investigate with the testcase in PR6129. llvm-svn: 94381
* mcize lcomm, simplify .comm, extend both to support 64-bit sizes.Chris Lattner2010-01-231-1/+1
| | | | llvm-svn: 94299
* remove unneeded directive set.Chris Lattner2010-01-231-1/+0
| | | | llvm-svn: 94286
* revert 93934, removing the MCAsmInfo endianness bit. I can'tChris Lattner2010-01-201-2/+2
| | | | | | | stomache MCAsmInfo having this, and I found a better solution to this layering issue. llvm-svn: 93985
* give MCAsmInfo a 'has little endian' bit. This is unfortunate, butChris Lattner2010-01-191-2/+2
| | | | | | | | | I really want clients of the streamer to be able to say "emit this 64-bit integer" and have it get broken down right by the streamer. I may change this in the future, we'll see how it works out. llvm-svn: 93934
* Reenable debug info on PPC. Works well enough toDale Johannesen2010-01-061-0/+1
| | | | | | bootstrap. llvm-svn: 92818
* Revert r89803.Devang Patel2009-11-251-3/+0
| | | | llvm-svn: 89819
* Enable debug info for ppc-darwin.Devang Patel2009-11-241-0/+3
| | | | llvm-svn: 89803
* Big change #1 for personality function references:Chris Lattner2009-09-161-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Eliminate the PersonalityPrefix/Suffix & NeedsIndirectEncoding fields from MAI: they aren't part of the asm syntax, they are related to the structure of the object file. To replace their functionality, add a new TLOF::getSymbolForDwarfGlobalReference method which asks targets to decide how to reference a global from EH in a pc-relative way. The default implementation just returns the symbol. The default darwin implementation references the symbol through an indirect $non_lazy_ptr stub. The bizarro x86-64 darwin specialization handles the weird "foo@GOTPCREL+4" hack. DwarfException.cpp now uses this to emit the reference to the symbol in the right way, and this also eliminates another horrible hack from DwarfException.cpp: - if (strcmp(MAI->getPersonalitySuffix(), "+4@GOTPCREL")) - O << "-" << MAI->getPCSymbol(); llvm-svn: 81991
* eliminate the PPC backend's implementation of EmitExternalGlobalChris Lattner2009-09-161-0/+3
| | | | | | | | | | | | | | | | and use PersonalityPrefix/Suffix to achieve the same effect (like the x86 backend). This changes the code generated for ppc static mode, but guess what, we were generating this before: .byte 0x9B ; Personality (indirect pcrel sdata4) .long ___gxx_personality_v0-. ; Personality which is not correct! (it is not an 'indirect' reference). llvm-svn: 81965
* rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.Chris Lattner2009-08-221-2/+2
| | | | llvm-svn: 79773
* Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.Chris Lattner2009-08-221-0/+58
llvm-svn: 79763
OpenPOWER on IntegriCloud