diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-12 21:50:41 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-12 21:50:41 +0000 |
commit | b52e23669cbd8637819d9ff7777d43cbc3bf8f31 (patch) | |
tree | 50b6f514a58df8209c56928ac50a4fa1bc041c6e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | e4dacb750da45f4183ae67868d7283a89efe0b40 (diff) | |
download | llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.zip llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.tar.gz llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 317a5db..3c7e10f 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1555,6 +1555,7 @@ void ModuleBitcodeWriter::writeDICompileUnit(const DICompileUnit *N, Record.push_back(VE.getMetadataOrNullID(N->getMacros().get())); Record.push_back(N->getSplitDebugInlining()); Record.push_back(N->getDebugInfoForProfiling()); + Record.push_back(N->getGnuPubnames()); Stream.EmitRecord(bitc::METADATA_COMPILE_UNIT, Record, Abbrev); Record.clear(); |