[lld] [LLD][COFF][NFC] Store live flag in ImportThunkChunk. (PR #108459)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 01:07:47 PDT 2024


================
@@ -774,6 +774,10 @@ void StringChunk::writeTo(uint8_t *buf) const {
   buf[str.size()] = '\0';
 }
 
+ImportThunkChunk::ImportThunkChunk(COFFLinkerContext &ctx, Defined *s)
+    : NonSectionCodeChunk(ImportThunkKind), live(!ctx.config.doGC),
----------------
mstorsjo wrote:

I presume the move from header to cpp file is because you want to access `ctx.config` here, which otherwise isn't visible?

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


More information about the llvm-commits mailing list