mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Revert r61415 and r61484. Duncan was correct that these weren't needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -448,20 +448,10 @@ namespace llvm {
|
|||||||
///
|
///
|
||||||
bool DwarfRequiresFrameSection; // Defaults to true.
|
bool DwarfRequiresFrameSection; // Defaults to true.
|
||||||
|
|
||||||
/// FDEEncodingRequiresSData4 - If set, the FDE Encoding in the EH section
|
|
||||||
/// includes DW_EH_PE_sdata4.
|
|
||||||
///
|
|
||||||
bool FDEEncodingRequiresSData4; // Defaults to true
|
|
||||||
|
|
||||||
/// NonLocalEHFrameLabel - If set, the EH_frame label needs to be non-local.
|
/// NonLocalEHFrameLabel - If set, the EH_frame label needs to be non-local.
|
||||||
///
|
///
|
||||||
bool NonLocalEHFrameLabel; // Defaults to false.
|
bool NonLocalEHFrameLabel; // Defaults to false.
|
||||||
|
|
||||||
/// Force32BitFDEReference - Force the FDE initial location and address
|
|
||||||
/// range to be 32-bit sized.
|
|
||||||
///
|
|
||||||
bool Force32BitFDEReference; // Defaults to true.
|
|
||||||
|
|
||||||
/// GlobalEHDirective - This is the directive used to make exception frame
|
/// GlobalEHDirective - This is the directive used to make exception frame
|
||||||
/// tables globally visible.
|
/// tables globally visible.
|
||||||
///
|
///
|
||||||
@@ -828,15 +818,9 @@ namespace llvm {
|
|||||||
bool doesDwarfRequireFrameSection() const {
|
bool doesDwarfRequireFrameSection() const {
|
||||||
return DwarfRequiresFrameSection;
|
return DwarfRequiresFrameSection;
|
||||||
}
|
}
|
||||||
bool doesFDEEncodingRequireSData4() const {
|
|
||||||
return FDEEncodingRequiresSData4;
|
|
||||||
}
|
|
||||||
bool doesRequireNonLocalEHFrameLabel() const {
|
bool doesRequireNonLocalEHFrameLabel() const {
|
||||||
return NonLocalEHFrameLabel;
|
return NonLocalEHFrameLabel;
|
||||||
}
|
}
|
||||||
bool doesRequire32BitFDEReference() const {
|
|
||||||
return Force32BitFDEReference;
|
|
||||||
}
|
|
||||||
const char *getGlobalEHDirective() const {
|
const char *getGlobalEHDirective() const {
|
||||||
return GlobalEHDirective;
|
return GlobalEHDirective;
|
||||||
}
|
}
|
||||||
|
@@ -3410,24 +3410,14 @@ private:
|
|||||||
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
|
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
|
||||||
Asm->EOL("LSDA Encoding (pcrel sdata4)");
|
Asm->EOL("LSDA Encoding (pcrel sdata4)");
|
||||||
|
|
||||||
if (TAI->doesFDEEncodingRequireSData4()) {
|
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
|
||||||
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
|
Asm->EOL("FDE Encoding (pcrel sdata4)");
|
||||||
Asm->EOL("FDE Encoding (pcrel sdata4)");
|
|
||||||
} else {
|
|
||||||
Asm->EmitInt8(DW_EH_PE_pcrel);
|
|
||||||
Asm->EOL("FDE Encoding (pcrel)");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Asm->EmitULEB128Bytes(1);
|
Asm->EmitULEB128Bytes(1);
|
||||||
Asm->EOL("Augmentation Size");
|
Asm->EOL("Augmentation Size");
|
||||||
|
|
||||||
if (TAI->doesFDEEncodingRequireSData4()) {
|
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
|
||||||
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
|
Asm->EOL("FDE Encoding (pcrel sdata4)");
|
||||||
Asm->EOL("FDE Encoding (pcrel sdata4)");
|
|
||||||
} else {
|
|
||||||
Asm->EmitInt8(DW_EH_PE_pcrel);
|
|
||||||
Asm->EOL("FDE Encoding (pcrel)");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate locations of general callee saved registers in frame.
|
// Indicate locations of general callee saved registers in frame.
|
||||||
@@ -3508,12 +3498,10 @@ private:
|
|||||||
|
|
||||||
Asm->EOL("FDE CIE offset");
|
Asm->EOL("FDE CIE offset");
|
||||||
|
|
||||||
EmitReference("eh_func_begin", EHFrameInfo.Number, true,
|
EmitReference("eh_func_begin", EHFrameInfo.Number, true);
|
||||||
TAI->doesRequire32BitFDEReference());
|
|
||||||
Asm->EOL("FDE initial location");
|
Asm->EOL("FDE initial location");
|
||||||
EmitDifference("eh_func_end", EHFrameInfo.Number,
|
EmitDifference("eh_func_end", EHFrameInfo.Number,
|
||||||
"eh_func_begin", EHFrameInfo.Number,
|
"eh_func_begin", EHFrameInfo.Number);
|
||||||
TAI->doesRequire32BitFDEReference());
|
|
||||||
Asm->EOL("FDE address range");
|
Asm->EOL("FDE address range");
|
||||||
|
|
||||||
// If there is a personality and landing pads then point to the language
|
// If there is a personality and landing pads then point to the language
|
||||||
|
@@ -99,9 +99,7 @@ void TargetAsmInfo::fillDefaultValues() {
|
|||||||
SupportsDebugInformation = false;
|
SupportsDebugInformation = false;
|
||||||
SupportsExceptionHandling = false;
|
SupportsExceptionHandling = false;
|
||||||
DwarfRequiresFrameSection = true;
|
DwarfRequiresFrameSection = true;
|
||||||
FDEEncodingRequiresSData4 = true;
|
|
||||||
NonLocalEHFrameLabel = false;
|
NonLocalEHFrameLabel = false;
|
||||||
Force32BitFDEReference = true;
|
|
||||||
GlobalEHDirective = 0;
|
GlobalEHDirective = 0;
|
||||||
SupportsWeakOmittedEHFrame = true;
|
SupportsWeakOmittedEHFrame = true;
|
||||||
DwarfSectionOffsetDirective = 0;
|
DwarfSectionOffsetDirective = 0;
|
||||||
|
@@ -70,9 +70,7 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM):
|
|||||||
COMMDirectiveTakesAlignment = (Subtarget->getDarwinVers() >= 9);
|
COMMDirectiveTakesAlignment = (Subtarget->getDarwinVers() >= 9);
|
||||||
HasDotTypeDotSizeDirective = false;
|
HasDotTypeDotSizeDirective = false;
|
||||||
HasSingleParameterDotFile = false;
|
HasSingleParameterDotFile = false;
|
||||||
FDEEncodingRequiresSData4 = false;
|
|
||||||
NonLocalEHFrameLabel = true;
|
NonLocalEHFrameLabel = true;
|
||||||
Force32BitFDEReference = false;
|
|
||||||
if (TM.getRelocationModel() == Reloc::Static) {
|
if (TM.getRelocationModel() == Reloc::Static) {
|
||||||
StaticCtorsSection = ".constructor";
|
StaticCtorsSection = ".constructor";
|
||||||
StaticDtorsSection = ".destructor";
|
StaticDtorsSection = ".destructor";
|
||||||
|
Reference in New Issue
Block a user