[llvm] [llvm-dlltool] Use EXPORTAS name type for renamed imports on ARM64EC. (PR #99346)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 21 12:29:50 PDT 2024
================
@@ -729,7 +729,10 @@ Error writeImportLibrary(StringRef ImportName, StringRef Path,
else if (Machine == IMAGE_FILE_MACHINE_I386 &&
applyNameType(IMPORT_NAME_NOPREFIX, Name) == E.ImportName)
NameType = IMPORT_NAME_NOPREFIX;
- else if (Name == E.ImportName)
+ else if (isArm64EC(M)) {
+ NameType = IMPORT_NAME_EXPORTAS;
----------------
mstorsjo wrote:
Oh, ok - in that case the name does seem to be quite official, thanks for the reference!
https://github.com/llvm/llvm-project/pull/99346
More information about the llvm-commits
mailing list