[llvm-branch-commits] [llvm] 728f99f - [ThinLTO][test] Specify -enable-import-metadata to make !thinlto_src_module available in -DLLVM_ENABLE_ASSERTIONS=off mode

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 31 09:36:49 PST 2020


Author: Fangrui Song
Date: 2020-12-31T09:31:53-08:00
New Revision: 728f99fa0b6c13ce7d4608e5ba6e0d0bfbdaddbb

URL: https://github.com/llvm/llvm-project/commit/728f99fa0b6c13ce7d4608e5ba6e0d0bfbdaddbb
DIFF: https://github.com/llvm/llvm-project/commit/728f99fa0b6c13ce7d4608e5ba6e0d0bfbdaddbb.diff

LOG: [ThinLTO][test] Specify -enable-import-metadata to make !thinlto_src_module available in -DLLVM_ENABLE_ASSERTIONS=off mode

Added: 
    

Modified: 
    llvm/test/ThinLTO/X86/visibility-elf.ll
    llvm/test/ThinLTO/X86/visibility-macho.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/ThinLTO/X86/visibility-elf.ll b/llvm/test/ThinLTO/X86/visibility-elf.ll
index 8b2e36afcac6..74e2e7ca9bb6 100644
--- a/llvm/test/ThinLTO/X86/visibility-elf.ll
+++ b/llvm/test/ThinLTO/X86/visibility-elf.ll
@@ -3,7 +3,7 @@
 ; RUN: opt -module-summary %t/b.ll -o %tb.bc
 
 ;; Test visibility propagation. The prevailing definitions are all from %tb.bc.
-; RUN: llvm-lto2 run -save-temps -o %t1.bc %ta.bc %tb.bc \
+; RUN: llvm-lto2 run -save-temps -enable-import-metadata -o %t1.bc %ta.bc %tb.bc \
 ; RUN:   -r=%ta.bc,var1,l -r=%ta.bc,var2,l \
 ; RUN:   -r=%ta.bc,hidden_def_weak_def,l -r=%ta.bc,protected_def_weak_def,l -r=%ta.bc,protected_def_weak_hidden_def,l \
 ; RUN:   -r=%ta.bc,protected_def_hidden_ref,l -r=%ta.bc,not_imported,l -r=%ta.bc,hidden_def_ref,l \

diff  --git a/llvm/test/ThinLTO/X86/visibility-macho.ll b/llvm/test/ThinLTO/X86/visibility-macho.ll
index 72fee600c80e..6e62cc0649ff 100644
--- a/llvm/test/ThinLTO/X86/visibility-macho.ll
+++ b/llvm/test/ThinLTO/X86/visibility-macho.ll
@@ -3,7 +3,7 @@
 ; RUN: opt -module-summary %t/b.ll -o %tb.bc
 
 ;; Test visibility propagation. The prevailing definitions are all from %tb.bc.
-; RUN: llvm-lto2 run -save-temps -o %t1.bc %ta.bc %tb.bc \
+; RUN: llvm-lto2 run -save-temps -enable-import-metadata -o %t1.bc %ta.bc %tb.bc \
 ; RUN:   -r=%ta.bc,_var1,l -r=%ta.bc,_var2,l \
 ; RUN:   -r=%ta.bc,_hidden_def_weak_def,l -r=%ta.bc,_not_imported,l -r=%ta.bc,_hidden_def_ref,l \
 ; RUN:   -r=%ta.bc,_hidden_def_weak_ref,l \


        


More information about the llvm-branch-commits mailing list