[lld] [LLD][COFF] Add -build-id flag to generate .buildid section. (PR #71433)

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 10:48:40 PST 2023


================
@@ -1067,6 +1071,7 @@ void Writer::createMiscChunks() {
   for (std::pair<COFF::DebugType, Chunk *> r : debugRecords) {
     r.second->setAlignment(4);
     debugInfoSec->addChunk(r.second);
+    debugDirectory->addRecord(r.first, r.second);
----------------
ZequanWu wrote:

Done. Reverted changes on record vectors.

https://github.com/llvm/llvm-project/pull/71433


More information about the llvm-commits mailing list