[lld] [LLD][COFF][NFC] Create import thunks in ImportFile::parse. (PR #107929)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 12:33:24 PDT 2024
================
@@ -1069,9 +1069,27 @@ void ImportFile::parse() {
// DLL functions just like regular non-DLL functions.)
if (hdr->getType() == llvm::COFF::IMPORT_CODE) {
if (ctx.config.machine != ARM64EC) {
- thunkSym = ctx.symtab.addImportThunk(name, impSym, hdr->Machine);
+ ImportThunkChunk *chunk;
+ switch (hdr->Machine) {
----------------
cjacek wrote:
I updated with a version using such helper. Thanks for reviews.
https://github.com/llvm/llvm-project/pull/107929
More information about the llvm-commits
mailing list