diff options
author | Dehao Chen <dehao@google.com> | 2017-02-01 22:45:21 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2017-02-01 22:45:21 +0000 |
commit | 1090ea6d34f7c68de21802bb1879a66f020b5c00 (patch) | |
tree | d751a644366c6fbf8339f19fde6c420fd3c5d6bd /lib/CodeGen/CGDebugInfo.cpp | |
parent | 5e83f1e3fdce9dbbeacf6dd813069433e977db23 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index b58afaaa60..7eb0af2d37 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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) { |