mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
DebugInfo: TargetOptions/MCAsmInfo support for compressed debug info sections
llvm-svn: 204957
This commit is contained in:
parent
4e5d391691
commit
7bf1eb599f
@ -307,6 +307,9 @@ namespace llvm {
|
|||||||
/// construction (see LLVMTargetMachine::initAsmInfo()).
|
/// construction (see LLVMTargetMachine::initAsmInfo()).
|
||||||
bool UseIntegratedAssembler;
|
bool UseIntegratedAssembler;
|
||||||
|
|
||||||
|
/// Compress DWARF debug sections. Defaults to false.
|
||||||
|
bool CompressDebugSections;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MCAsmInfo();
|
explicit MCAsmInfo();
|
||||||
virtual ~MCAsmInfo();
|
virtual ~MCAsmInfo();
|
||||||
@ -538,6 +541,12 @@ namespace llvm {
|
|||||||
virtual void setUseIntegratedAssembler(bool Value) {
|
virtual void setUseIntegratedAssembler(bool Value) {
|
||||||
UseIntegratedAssembler = Value;
|
UseIntegratedAssembler = Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool compressDebugSections() const { return CompressDebugSections; }
|
||||||
|
|
||||||
|
void setCompressDebugSections(bool CompressDebugSections) {
|
||||||
|
this->CompressDebugSections = CompressDebugSections;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ namespace llvm {
|
|||||||
DisableTailCalls(false), StackAlignmentOverride(0),
|
DisableTailCalls(false), StackAlignmentOverride(0),
|
||||||
EnableFastISel(false), PositionIndependentExecutable(false),
|
EnableFastISel(false), PositionIndependentExecutable(false),
|
||||||
EnableSegmentedStacks(false), UseInitArray(false),
|
EnableSegmentedStacks(false), UseInitArray(false),
|
||||||
DisableIntegratedAS(false), TrapFuncName(""),
|
DisableIntegratedAS(false), CompressDebugSections(false),
|
||||||
FloatABIType(FloatABI::Default),
|
TrapFuncName(""), FloatABIType(FloatABI::Default),
|
||||||
AllowFPOpFusion(FPOpFusion::Standard) {}
|
AllowFPOpFusion(FPOpFusion::Standard) {}
|
||||||
|
|
||||||
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
||||||
@ -161,6 +161,9 @@ namespace llvm {
|
|||||||
/// Disable the integrated assembler.
|
/// Disable the integrated assembler.
|
||||||
unsigned DisableIntegratedAS : 1;
|
unsigned DisableIntegratedAS : 1;
|
||||||
|
|
||||||
|
/// Compress DWARF debug sections.
|
||||||
|
unsigned CompressDebugSections : 1;
|
||||||
|
|
||||||
/// getTrapFunctionName - If this returns a non-empty string, this means
|
/// getTrapFunctionName - If this returns a non-empty string, this means
|
||||||
/// isel should lower Intrinsic::trap to a call to the specified function
|
/// isel should lower Intrinsic::trap to a call to the specified function
|
||||||
/// name instead of an ISD::TRAP node.
|
/// name instead of an ISD::TRAP node.
|
||||||
|
@ -75,6 +75,9 @@ void LLVMTargetMachine::initAsmInfo() {
|
|||||||
if (Options.DisableIntegratedAS)
|
if (Options.DisableIntegratedAS)
|
||||||
TmpAsmInfo->setUseIntegratedAssembler(false);
|
TmpAsmInfo->setUseIntegratedAssembler(false);
|
||||||
|
|
||||||
|
if (Options.CompressDebugSections)
|
||||||
|
TmpAsmInfo->setCompressDebugSections(true);
|
||||||
|
|
||||||
AsmInfo = TmpAsmInfo;
|
AsmInfo = TmpAsmInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user