summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetObjectFile.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert Anton's most recent EH patch (r96637), since it breaks a lot ofBob Wilson2010-02-191-0/+8
| | | | | | ARM and Thumb tests. llvm-svn: 96680
* Use the same encoding for EH stuff uniformly on all MachO targets.Anton Korobeynikov2010-02-191-8/+0
| | | | | | This hopefulyl should unbreak EH on PPC/Darwin. llvm-svn: 96637
* Minor warning fixes (semicolons, newline at EOF).Benjamin Kramer2010-02-161-2/+2
| | | | llvm-svn: 96343
* Move TLOF implementations to libCodegen to resolve layering violation.Anton Korobeynikov2010-02-151-0/+1
| | | | llvm-svn: 96288
* Preliminary patch to improve dwarf EH generation - Hooks to return ↵Anton Korobeynikov2010-02-151-7/+38
| | | | | | Personality / FDE / LSDA / TType encoding depending on target / options (e.g. code model / relocation model) - MCIzation of Dwarf EH printer to use encoding information - Stub generation for ELF target (needed for indirect references) - Some other small changes here and there llvm-svn: 96285
* Make a new X8632_MachoTargetObjectFile TLOF implementation whose Chris Lattner2009-09-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | getSymbolForDwarfGlobalReference is smart enough to know that it needs to register the stub it references with MachineModuleInfoMachO, so that it gets emitted at the end of the file. Move stub emission from X86ATTAsmPrinter::doFinalization to the new X86ATTAsmPrinter::EmitEndOfAsmFile asmprinter hook. The important thing here is that EmitEndOfAsmFile is called *after* the ehframes are emitted, so we get all the stubs. This allows us to remove a gross hack from the asmprinter where it would "just know" that it needed to output stubs for personality functions. Now this is all driven from a consistent interface. The testcase change is just reordering the expected output now that the stubs come out after the ehframe instead of before. This also unblocks other changes that Bill wants to make. llvm-svn: 82269
* pass machinemoduleinfo down into getSymbolForDwarfGlobalReference, Chris Lattner2009-09-171-0/+1
| | | | | | currently unused. llvm-svn: 82157
* Big change #1 for personality function references:Chris Lattner2009-09-161-0/+28
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
OpenPOWER on IntegriCloud