From b52e23669cbd8637819d9ff7777d43cbc3bf8f31 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 12 Sep 2017 21:50:41 +0000 Subject: IR: Represent -ggnu-pubnames with a flag on the DICompileUnit. This allows the flag to be persisted through to LTO. Differential Revision: https://reviews.llvm.org/D37655 llvm-svn: 313078 --- llvm/lib/IR/AsmWriter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/IR/AsmWriter.cpp') diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 3443c6a3d78..f351aa1d615 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -1742,6 +1742,7 @@ static void writeDICompileUnit(raw_ostream &Out, const DICompileUnit *N, Printer.printBool("splitDebugInlining", N->getSplitDebugInlining(), true); Printer.printBool("debugInfoForProfiling", N->getDebugInfoForProfiling(), false); + Printer.printBool("gnuPubnames", N->getGnuPubnames(), false); Out << ")"; } -- cgit v1.2.3