llvm-6502/include/llvm/MC
Chris Lattner 8c6ed05157 Big change #1 for personality function references:
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();



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81991 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-16 01:46:41 +00:00
..
MCAsmInfo.h Big change #1 for personality function references: 2009-09-16 01:46:41 +00:00
MCAsmInfoCOFF.h rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin. 2009-08-22 21:03:30 +00:00
MCAsmInfoDarwin.h rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin. 2009-08-22 21:03:30 +00:00
MCAsmLexer.h Added AsmToken enum constants to MCAsmLexer.h for '[', ']', '{', and '}' in 2009-09-04 22:40:31 +00:00
MCAsmParser.h MC: Give target specific parsers access to the MCStreamer. 2009-09-10 00:59:15 +00:00
MCAssembler.h llvm-mc: Store MCSymbolData value as a pointer (to make MSVC happy). 2009-09-01 04:09:03 +00:00
MCCodeEmitter.h llvm-mc: Tweak MCCodeEmitter skeleton. 2009-08-27 01:34:22 +00:00
MCContext.h llvm-mc: Add some doxyment markers. 2009-08-31 08:07:08 +00:00
MCDisassembler.h add a new MCInstPrinter class, move the (trivial) MCDisassmbler ctor inline. 2009-09-14 01:43:38 +00:00
MCExpr.h add a helper method for creating MCSymbol and MCSymbolRefExpr at 2009-09-16 01:26:31 +00:00
MCInst.h eliminate the "MBBLabel" MCOperand type, and just use a MCSymbol for 2009-09-12 20:45:03 +00:00
MCInstPrinter.h Give MCInstPrinter a MCAsmInfo member, make X86ATTInstPrinter 2009-09-14 01:49:26 +00:00
MCSection.h rename TAI -> MAI, being careful not to make MAILJMP instructions :) 2009-08-22 21:43:10 +00:00
MCSectionELF.h rename TAI -> MAI, being careful not to make MAILJMP instructions :) 2009-08-22 21:43:10 +00:00
MCSectionMachO.h rename TAI -> MAI, being careful not to make MAILJMP instructions :) 2009-08-22 21:43:10 +00:00
MCStreamer.h Change MCAsmStreamer to take an MCInstPrinter instead of a 2009-09-14 03:02:37 +00:00
MCSymbol.h Thread an MCAsmInfo pointer through the various MC printing APIs, 2009-09-03 05:46:51 +00:00
MCValue.h Thread an MCAsmInfo pointer through the various MC printing APIs, 2009-09-03 05:46:51 +00:00
SectionKind.h make MergeableCString be a SectionKind "abstract class", and 2009-08-04 05:35:56 +00:00