mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +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.
|
||||
|
||||
/// 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.
|
||||
///
|
||||
bool NonLocalEHFrameLabel; // Defaults to false.
|
||||
@ -818,6 +822,9 @@ namespace llvm {
|
||||
bool doesDwarfRequireFrameSection() const {
|
||||
return DwarfRequiresFrameSection;
|
||||
}
|
||||
bool doesSupportMacInfoSection() const {
|
||||
return SupportsMacInfoSection;
|
||||
}
|
||||
bool doesRequireNonLocalEHFrameLabel() const {
|
||||
return NonLocalEHFrameLabel;
|
||||
}
|
||||
|
@ -2167,8 +2167,10 @@ private:
|
||||
EmitLabel("section_abbrev", 0);
|
||||
Asm->SwitchToDataSection(TAI->getDwarfARangesSection());
|
||||
EmitLabel("section_aranges", 0);
|
||||
if (TAI->doesSupportMacInfoSection()) {
|
||||
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
||||
EmitLabel("section_macinfo", 0);
|
||||
}
|
||||
Asm->SwitchToDataSection(TAI->getDwarfLineSection());
|
||||
EmitLabel("section_line", 0);
|
||||
Asm->SwitchToDataSection(TAI->getDwarfLocSection());
|
||||
@ -2755,11 +2757,13 @@ private:
|
||||
/// EmitDebugMacInfo - Emit visible names into a debug macinfo section.
|
||||
///
|
||||
void EmitDebugMacInfo() {
|
||||
if (TAI->doesSupportMacInfoSection()) {
|
||||
// Start the dwarf macinfo section.
|
||||
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
||||
|
||||
Asm->EOL();
|
||||
}
|
||||
}
|
||||
|
||||
/// ConstructCompileUnits - Create a compile unit DIEs.
|
||||
void ConstructCompileUnits() {
|
||||
|
@ -99,6 +99,7 @@ void TargetAsmInfo::fillDefaultValues() {
|
||||
SupportsDebugInformation = false;
|
||||
SupportsExceptionHandling = false;
|
||||
DwarfRequiresFrameSection = true;
|
||||
SupportsMacInfoSection = true;
|
||||
NonLocalEHFrameLabel = false;
|
||||
GlobalEHDirective = 0;
|
||||
SupportsWeakOmittedEHFrame = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user