Skip to content

Commit 9836f35

Browse files
committed
[DWARFLinkerParallel] Add missing version string in producer
1 parent d5aa5e3 commit 9836f35

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/lib/DWARFLinker/Parallel/DWARFLinkerTypeUnit.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ void TypeUnit::createDIETree(BumpPtrAllocator &Allocator) {
5858
uint64_t OutOffset = getDebugInfoHeaderSize();
5959
UnitDIE->setOffset(OutOffset);
6060

61-
SmallString<200> ProducerString;
62-
ProducerString += "llvm DWARFLinkerParallel library version ";
61+
const char *ProducerString =
62+
"llvm DWARFLinkerParallel library version " LLVM_VERSION_STRING;
6363
DebugInfoSection.notePatchWithOffsetUpdate(
64-
DebugStrPatch{
65-
{OutOffset},
66-
GlobalData.getStringPool().insert(ProducerString.str()).first},
64+
DebugStrPatch{{OutOffset},
65+
GlobalData.getStringPool().insert(ProducerString).first},
6766
PatchesOffsets);
6867
OutOffset += DIETreeGenerator
6968
.addStringPlaceholderAttribute(dwarf::DW_AT_producer,

0 commit comments

Comments
 (0)