diff options
author | Martin Storsjö <martin@martin.st> | 2024-07-11 15:53:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 15:53:37 +0300 |
commit | a3913a19185e3513a317aab792e85d5c50ef0242 (patch) | |
tree | 14281c1ff7db14876f52d1d8a91e5ff25d1eb8d7 /llvm/lib/Object/COFFImportFile.cpp | |
parent | e4163c0927772f2ec73cf16d53e000614c419c45 (diff) | |
download | llvm-a3913a19185e3513a317aab792e85d5c50ef0242.zip llvm-a3913a19185e3513a317aab792e85d5c50ef0242.tar.gz llvm-a3913a19185e3513a317aab792e85d5c50ef0242.tar.bz2 |
[llvm-dlltool] Respect the DATA flag when creating aliases (#98225)
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
-rw-r--r-- | llvm/lib/Object/COFFImportFile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFImportFile.cpp b/llvm/lib/Object/COFFImportFile.cpp index fd8aca3..a9f150a 100644 --- a/llvm/lib/Object/COFFImportFile.cpp +++ b/llvm/lib/Object/COFFImportFile.cpp @@ -691,7 +691,9 @@ Error writeImportLibrary(StringRef ImportName, StringRef Path, } if (!E.ImportName.empty() && Name != E.ImportName) { - Members.push_back(OF.createWeakExternal(E.ImportName, Name, false, M)); + if (ImportType == IMPORT_CODE) + Members.push_back( + OF.createWeakExternal(E.ImportName, Name, false, M)); Members.push_back(OF.createWeakExternal(E.ImportName, Name, true, M)); continue; } |