mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Change the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system >
Leopard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c841fe5fd1
commit
859cc77963
@ -41,12 +41,16 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) :
|
|||||||
unsigned
|
unsigned
|
||||||
PPCDarwinTargetAsmInfo::PreferredEHDataFormat(DwarfEncoding::Target Reason,
|
PPCDarwinTargetAsmInfo::PreferredEHDataFormat(DwarfEncoding::Target Reason,
|
||||||
bool Global) const {
|
bool Global) const {
|
||||||
if ((Reason == DwarfEncoding::Data || Reason == DwarfEncoding::Functions)
|
const PPCSubtarget *Subtarget = &TM.getSubtarget<PPCSubtarget>();
|
||||||
&& Global)
|
|
||||||
return DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4;
|
|
||||||
|
|
||||||
if (Reason == DwarfEncoding::CodeLabels || !Global)
|
if (Subtarget->getDarwinVers() > 9) {
|
||||||
return DW_EH_PE_pcrel;
|
if ((Reason == DwarfEncoding::Data || Reason == DwarfEncoding::Functions)
|
||||||
|
&& Global)
|
||||||
|
return DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4;
|
||||||
|
|
||||||
|
if (Reason == DwarfEncoding::CodeLabels || !Global)
|
||||||
|
return DW_EH_PE_pcrel;
|
||||||
|
}
|
||||||
|
|
||||||
return DW_EH_PE_absptr;
|
return DW_EH_PE_absptr;
|
||||||
}
|
}
|
||||||
|
@ -94,12 +94,16 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM):
|
|||||||
unsigned
|
unsigned
|
||||||
X86DarwinTargetAsmInfo::PreferredEHDataFormat(DwarfEncoding::Target Reason,
|
X86DarwinTargetAsmInfo::PreferredEHDataFormat(DwarfEncoding::Target Reason,
|
||||||
bool Global) const {
|
bool Global) const {
|
||||||
if ((Reason == DwarfEncoding::Data || Reason == DwarfEncoding::Functions)
|
const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>();
|
||||||
&& Global)
|
|
||||||
return DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4;
|
|
||||||
|
|
||||||
if (Reason == DwarfEncoding::CodeLabels || !Global)
|
if (Subtarget->getDarwinVers() > 9) {
|
||||||
return DW_EH_PE_pcrel;
|
if ((Reason == DwarfEncoding::Data || Reason == DwarfEncoding::Functions)
|
||||||
|
&& Global)
|
||||||
|
return DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4;
|
||||||
|
|
||||||
|
if (Reason == DwarfEncoding::CodeLabels || !Global)
|
||||||
|
return DW_EH_PE_pcrel;
|
||||||
|
}
|
||||||
|
|
||||||
return DW_EH_PE_absptr;
|
return DW_EH_PE_absptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user