diff options
| author | Michael Buch <michaelbuch12@gmail.com> | 2025-10-15 16:52:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 16:52:45 +0100 |
| commit | cf1cdde24e76a4ff5bbda2128800ba3ca4132b6d (patch) | |
| tree | 2d0f603266f34f7cc0612f92336b3fb4fbfd4dbf /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | a1b0db82cf5fdf0a2981877c9a939a8097393049 (diff) | |
| download | llvm-cf1cdde24e76a4ff5bbda2128800ba3ca4132b6d.zip llvm-cf1cdde24e76a4ff5bbda2128800ba3ca4132b6d.tar.gz llvm-cf1cdde24e76a4ff5bbda2128800ba3ca4132b6d.tar.bz2 | |
[llvm][DebugInfo] Add 'sourceLanguageVersion' field support to DICompileUnit (#162632)
Depends on:
* https://github.com/llvm/llvm-project/pull/162445
In preparation to emit DWARFv6's `DW_AT_language_version`.
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 54e916e..8ff3aa9 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -2142,6 +2142,7 @@ void ModuleBitcodeWriter::writeDICompileUnit(const DICompileUnit *N, Record.push_back(N->getRangesBaseAddress()); Record.push_back(VE.getMetadataOrNullID(N->getRawSysRoot())); Record.push_back(VE.getMetadataOrNullID(N->getRawSDK())); + Record.push_back(Lang.hasVersionedName() ? Lang.getVersion() : 0); Stream.EmitRecord(bitc::METADATA_COMPILE_UNIT, Record, Abbrev); Record.clear(); |
