mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
Make the Dwarf macro information section optional; CellSPU's assembler
doesn't support it. The default is set to 'true', so this should not impact any other target backends. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
92f4f16a19
commit
210de72cd7
@ -448,6 +448,10 @@ namespace llvm {
|
|||||||
///
|
///
|
||||||
bool DwarfRequiresFrameSection; // Defaults to true.
|
bool DwarfRequiresFrameSection; // Defaults to true.
|
||||||
|
|
||||||
|
/// SupportsMacInfo - true if the Dwarf output supports macro information
|
||||||
|
///
|
||||||
|
bool SupportsMacInfoSection; // 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.
|
||||||
@ -818,6 +822,9 @@ namespace llvm {
|
|||||||
bool doesDwarfRequireFrameSection() const {
|
bool doesDwarfRequireFrameSection() const {
|
||||||
return DwarfRequiresFrameSection;
|
return DwarfRequiresFrameSection;
|
||||||
}
|
}
|
||||||
|
bool doesSupportMacInfoSection() const {
|
||||||
|
return SupportsMacInfoSection;
|
||||||
|
}
|
||||||
bool doesRequireNonLocalEHFrameLabel() const {
|
bool doesRequireNonLocalEHFrameLabel() const {
|
||||||
return NonLocalEHFrameLabel;
|
return NonLocalEHFrameLabel;
|
||||||
}
|
}
|
||||||
|
@ -2167,8 +2167,10 @@ private:
|
|||||||
EmitLabel("section_abbrev", 0);
|
EmitLabel("section_abbrev", 0);
|
||||||
Asm->SwitchToDataSection(TAI->getDwarfARangesSection());
|
Asm->SwitchToDataSection(TAI->getDwarfARangesSection());
|
||||||
EmitLabel("section_aranges", 0);
|
EmitLabel("section_aranges", 0);
|
||||||
|
if (TAI->doesSupportMacInfoSection()) {
|
||||||
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
||||||
EmitLabel("section_macinfo", 0);
|
EmitLabel("section_macinfo", 0);
|
||||||
|
}
|
||||||
Asm->SwitchToDataSection(TAI->getDwarfLineSection());
|
Asm->SwitchToDataSection(TAI->getDwarfLineSection());
|
||||||
EmitLabel("section_line", 0);
|
EmitLabel("section_line", 0);
|
||||||
Asm->SwitchToDataSection(TAI->getDwarfLocSection());
|
Asm->SwitchToDataSection(TAI->getDwarfLocSection());
|
||||||
@ -2755,11 +2757,13 @@ private:
|
|||||||
/// EmitDebugMacInfo - Emit visible names into a debug macinfo section.
|
/// EmitDebugMacInfo - Emit visible names into a debug macinfo section.
|
||||||
///
|
///
|
||||||
void EmitDebugMacInfo() {
|
void EmitDebugMacInfo() {
|
||||||
|
if (TAI->doesSupportMacInfoSection()) {
|
||||||
// Start the dwarf macinfo section.
|
// Start the dwarf macinfo section.
|
||||||
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
||||||
|
|
||||||
Asm->EOL();
|
Asm->EOL();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// ConstructCompileUnits - Create a compile unit DIEs.
|
/// ConstructCompileUnits - Create a compile unit DIEs.
|
||||||
void ConstructCompileUnits() {
|
void ConstructCompileUnits() {
|
||||||
|
@ -99,6 +99,7 @@ void TargetAsmInfo::fillDefaultValues() {
|
|||||||
SupportsDebugInformation = false;
|
SupportsDebugInformation = false;
|
||||||
SupportsExceptionHandling = false;
|
SupportsExceptionHandling = false;
|
||||||
DwarfRequiresFrameSection = true;
|
DwarfRequiresFrameSection = true;
|
||||||
|
SupportsMacInfoSection = true;
|
||||||
NonLocalEHFrameLabel = false;
|
NonLocalEHFrameLabel = false;
|
||||||
GlobalEHDirective = 0;
|
GlobalEHDirective = 0;
|
||||||
SupportsWeakOmittedEHFrame = true;
|
SupportsWeakOmittedEHFrame = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user