mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 03:08:43 +00:00
Output the correct format for Darwin.
llvm-svn: 77376
This commit is contained in:
parent
bb77e8e124
commit
41139f3ed4
@ -41,12 +41,14 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) :
|
||||
unsigned
|
||||
PPCDarwinTargetAsmInfo::PreferredEHDataFormat(DwarfEncoding::Target Reason,
|
||||
bool Global) const {
|
||||
if (Reason == DwarfEncoding::Functions && Global)
|
||||
return (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4);
|
||||
else if (Reason == DwarfEncoding::CodeLabels || !Global)
|
||||
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;
|
||||
else
|
||||
return DW_EH_PE_absptr;
|
||||
|
||||
return DW_EH_PE_absptr;
|
||||
}
|
||||
|
||||
const char *PPCDarwinTargetAsmInfo::getEHGlobalPrefix() const {
|
||||
|
Loading…
Reference in New Issue
Block a user