Skip to content

Commit

Permalink
[test] Explain the purpose of LLVM :: LTO/Resolution/X86/local-def-dl…
Browse files Browse the repository at this point in the history
…limport.ll

Requested in https://reviews.llvm.org/D148950#4315575
  • Loading branch information
ormris committed Jun 9, 2023
1 parent b6a7180 commit 3201277
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvm/test/LTO/Resolution/X86/local-def-dllimport.ll
@@ -1,3 +1,8 @@
; If a function has linkage "available_externally", make sure that a dllimport
; attribute is not dropped. The library definition (with a dllexport attribute)
; might be in a shared library, rather than merged into this module. Since we
; can't guaranty the definition is available locally, the dllimport attribute
; may be used by later passes and should be preserved.
; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t0.bc %s
; RUN: llvm-lto2 run -r %t0.bc,__imp_f,l \
; RUN: -r %t0.bc,g,p \
Expand Down

0 comments on commit 3201277

Please sign in to comment.