diff options
author | Dehao Chen <dehao@google.com> | 2017-02-01 22:45:09 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2017-02-01 22:45:09 +0000 |
commit | 0944a8c2ec4b7049403855c4195ccd541098c29d (patch) | |
tree | 8332166417f6c7689353dff3017fe5668afc1af2 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | db00b61860b30203428cee0cda9f45f55ee280c3 (diff) | |
download | bcm5719-llvm-0944a8c2ec4b7049403855c4195ccd541098c29d.tar.gz bcm5719-llvm-0944a8c2ec4b7049403855c4195ccd541098c29d.zip |
Change debug-info-for-profiling from a TargetOption to a function attribute.
Summary: LTO requires the debug-info-for-profiling to be a function attribute.
Reviewers: echristo, mehdi_amini, dblaikie, probinson, aprantl
Reviewed By: mehdi_amini, dblaikie, aprantl
Subscribers: aprantl, probinson, ahatanak, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D29203
llvm-svn: 293833
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 4269bb672a9..702a87311eb 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1184,7 +1184,7 @@ void DwarfUnit::applySubprogramAttributes(const DISubprogram *SP, DIE &SPDie, // If -fdebug-info-for-profiling is enabled, need to emit the subprogram // and its source location. bool SkipSPSourceLocation = SkipSPAttributes && - !Asm->TM.Options.DebugInfoForProfiling; + !CUNode->getDebugInfoForProfiling(); if (!SkipSPSourceLocation) if (applySubprogramDefinitionAttributes(SP, SPDie)) return; |