forked from OSchip/llvm-project
Change debug-info-for-profiling from a TargetOption to a function attribute.
Summary: cfe change for https://reviews.llvm.org/D29203 Reviewers: echristo, dblaikie Reviewed By: dblaikie Subscribers: mehdi_amini, cfe-commits Differential Revision: https://reviews.llvm.org/D29205 llvm-svn: 293834
This commit is contained in:
parent
0944a8c2ec
commit
5a3f890e06
|
@ -568,7 +568,6 @@ void EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
|
|||
Options.DisableIntegratedAS = CodeGenOpts.DisableIntegratedAS;
|
||||
Options.CompressDebugSections = CodeGenOpts.CompressDebugSections;
|
||||
Options.RelaxELFRelocations = CodeGenOpts.RelaxELFRelocations;
|
||||
Options.DebugInfoForProfiling = CodeGenOpts.DebugInfoForProfiling;
|
||||
|
||||
// Set EABI version.
|
||||
Options.EABIVersion = llvm::StringSwitch<llvm::EABI>(TargetOpts.EABIVersion)
|
||||
|
|
|
@ -509,7 +509,8 @@ void CGDebugInfo::CreateCompileUnit() {
|
|||
Checksum),
|
||||
Producer, LO.Optimize, CGM.getCodeGenOpts().DwarfDebugFlags, RuntimeVers,
|
||||
CGM.getCodeGenOpts().SplitDwarfFile, EmissionKind, 0 /* DWOid */,
|
||||
CGM.getCodeGenOpts().SplitDwarfInlining);
|
||||
CGM.getCodeGenOpts().SplitDwarfInlining,
|
||||
CGM.getCodeGenOpts().DebugInfoForProfiling);
|
||||
}
|
||||
|
||||
llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
|
||||
|
|
Loading…
Reference in New Issue