Skip to content

Commit 5a3f890

Browse files
committedFeb 1, 2017
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
1 parent 0944a8c commit 5a3f890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎clang/lib/CodeGen/BackendUtil.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ void EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
568568
Options.DisableIntegratedAS = CodeGenOpts.DisableIntegratedAS;
569569
Options.CompressDebugSections = CodeGenOpts.CompressDebugSections;
570570
Options.RelaxELFRelocations = CodeGenOpts.RelaxELFRelocations;
571-
Options.DebugInfoForProfiling = CodeGenOpts.DebugInfoForProfiling;
572571

573572
// Set EABI version.
574573
Options.EABIVersion = llvm::StringSwitch<llvm::EABI>(TargetOpts.EABIVersion)

‎clang/lib/CodeGen/CGDebugInfo.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ void CGDebugInfo::CreateCompileUnit() {
509509
Checksum),
510510
Producer, LO.Optimize, CGM.getCodeGenOpts().DwarfDebugFlags, RuntimeVers,
511511
CGM.getCodeGenOpts().SplitDwarfFile, EmissionKind, 0 /* DWOid */,
512-
CGM.getCodeGenOpts().SplitDwarfInlining);
512+
CGM.getCodeGenOpts().SplitDwarfInlining,
513+
CGM.getCodeGenOpts().DebugInfoForProfiling);
513514
}
514515

515516
llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {

0 commit comments

Comments
 (0)