[llvm] [lld] [LTO] [LLD] Don't alias the __imp_func and func symbol resolutions (PR #71376)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 18 00:27:42 PST 2023
================
@@ -37,3 +39,19 @@ define void @other() {
entry:
ret void
}
+
+;--- other2.ll
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-w64-windows-gnu"
+
+ at __imp_importedFunc = global ptr @importedFunc
+
+define void @importedFunc() {
----------------
MaskRay wrote:
Perhaps add a comment to emphasize that unprefixed symbol is external.
https://github.com/llvm/llvm-project/pull/71376
More information about the llvm-commits
mailing list