[PATCH] D136202: [Arm64EC] Refer to dllimport'ed functions correctly.
chenglin.bi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 18:59:14 PDT 2022
bcl5980 added a comment.
In D136202#3868691 <https://reviews.llvm.org/D136202#3868691>, @efriedma wrote:
> Just listing the symbol in the symbol table doesn't do anything useful as far as I know. What's actually referring to __imp_importf? What do you mean by link errors?
Nothing refer to `__imp_fn`. But that is an external symbol. I guess link will use it to generate the definition of `__imp_aux_fn`. So, if we don't export `__imp_fn`, link will report:
error LNK2019: unresolved external symbol __imp_aux_fn referenced in function #p (EC Symbol)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136202/new/
https://reviews.llvm.org/D136202
More information about the llvm-commits
mailing list