aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorAlok Kumar Sharma <AlokKumar.Sharma@amd.com>2021-09-07 11:25:44 +0530
committerAlok Kumar Sharma <AlokKumar.Sharma@amd.com>2021-09-16 10:41:55 +0530
commita5b72abc9eaadbd319f0fbb8ae947d2dd289b30a (patch)
treee0ad90fbd051e80587cb0b9c9df12b3aa17088ee /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta01f772d19d53976a6d6e0eed684440e4f2cc9da (diff)
downloadllvm-a5b72abc9eaadbd319f0fbb8ae947d2dd289b30a.zip
llvm-a5b72abc9eaadbd319f0fbb8ae947d2dd289b30a.tar.gz
llvm-a5b72abc9eaadbd319f0fbb8ae947d2dd289b30a.tar.bz2
[DebugInfo] Enhance DIImportedEntity to accept children entities
New field `elements` is added to '!DIImportedEntity', representing list of aliased entities. This is needed to dump optimized debugging information where all names in a module are imported, but a few names are imported with overriding aliases. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D109343
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index a7061c6..24b6e16 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -2062,6 +2062,7 @@ void ModuleBitcodeWriter::writeDIImportedEntity(
Record.push_back(N->getLine());
Record.push_back(VE.getMetadataOrNullID(N->getRawName()));
Record.push_back(VE.getMetadataOrNullID(N->getRawFile()));
+ Record.push_back(VE.getMetadataOrNullID(N->getElements().get()));
Stream.EmitRecord(bitc::METADATA_IMPORTED_ENTITY, Record, Abbrev);
Record.clear();