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/IR/AsmWriter.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/IR/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 9e2c8813a74..95d5872ddf6 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -1688,6 +1688,8 @@ static void writeDICompileUnit(raw_ostream &Out, const DICompileUnit *N, Printer.printMetadata("macros", N->getRawMacros()); Printer.printInt("dwoId", N->getDWOId()); Printer.printBool("splitDebugInlining", N->getSplitDebugInlining(), true); + Printer.printBool("debugInfoForProfiling", N->getDebugInfoForProfiling(), + false); Out << ")"; } |

