diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-04-28 22:25:46 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-04-28 22:25:46 +0000 |
commit | fed4f399d3a9b8381d9d32e7aa928855b11d7485 (patch) | |
tree | 6b842659a0d73b8c897febc016f92df12d4304b8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | c20ccd2c0209fdaae7f7efe066c4b59b4ca46842 (diff) | |
download | llvm-fed4f399d3a9b8381d9d32e7aa928855b11d7485.zip llvm-fed4f399d3a9b8381d9d32e7aa928855b11d7485.tar.gz llvm-fed4f399d3a9b8381d9d32e7aa928855b11d7485.tar.bz2 |
Remove line and file from DINamespace.
Fixes the issue highlighted in
http://lists.llvm.org/pipermail/cfe-dev/2014-June/037500.html.
The DW_AT_decl_file and DW_AT_decl_line attributes on namespaces can
prevent LLVM from uniquing types that are in the same namespace. They
also don't carry any meaningful information.
rdar://problem/17484998
Differential Revision: https://reviews.llvm.org/D32648
llvm-svn: 301706
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 54839b4..8aa7d0da 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1646,9 +1646,7 @@ void ModuleBitcodeWriter::writeDINamespace(const DINamespace *N, unsigned Abbrev) { Record.push_back(N->isDistinct() | N->getExportSymbols() << 1); Record.push_back(VE.getMetadataOrNullID(N->getScope())); - Record.push_back(VE.getMetadataOrNullID(N->getFile())); Record.push_back(VE.getMetadataOrNullID(N->getRawName())); - Record.push_back(N->getLine()); Stream.EmitRecord(bitc::METADATA_NAMESPACE, Record, Abbrev); Record.clear(); |