[llvm] 135aaff - [LTO] Avoid -opaque-pointers=0 in test (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 08:03:12 PDT 2023


Author: Nikita Popov
Date: 2023-06-20T17:03:04+02:00
New Revision: 135aaff2b55986c9fb8f4f86f9249695e8c38dbe

URL: https://github.com/llvm/llvm-project/commit/135aaff2b55986c9fb8f4f86f9249695e8c38dbe
DIFF: https://github.com/llvm/llvm-project/commit/135aaff2b55986c9fb8f4f86f9249695e8c38dbe.diff

LOG: [LTO] Avoid -opaque-pointers=0 in test (NFC)

Commit the bitcode file instead of generating it dynamically, as
this will no longer be possible in the future.

Added: 
    llvm/test/LTO/X86/Inputs/typed.bc

Modified: 
    llvm/test/LTO/X86/mix-opaque-typed.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/LTO/X86/Inputs/typed.bc b/llvm/test/LTO/X86/Inputs/typed.bc
new file mode 100644
index 0000000000000..e5043279004fb
Binary files /dev/null and b/llvm/test/LTO/X86/Inputs/typed.bc 
diff er

diff  --git a/llvm/test/LTO/X86/mix-opaque-typed.ll b/llvm/test/LTO/X86/mix-opaque-typed.ll
index 25630aa141d4d..4fb60b99c41f3 100644
--- a/llvm/test/LTO/X86/mix-opaque-typed.ll
+++ b/llvm/test/LTO/X86/mix-opaque-typed.ll
@@ -1,7 +1,6 @@
-; RUN: llvm-as -opaque-pointers=0 %s -o %t-typed.bc
-; RUN: llvm-as -opaque-pointers=1 %S/Inputs/opaque-pointers.ll -o %t-opaque.bc
-; RUN: llvm-lto2 run -o %t-lto.bc %t-typed.bc %t-opaque.bc -save-temps \
-; RUN:     -r %t-typed.bc,call_foo,px -r %t-typed.bc,foo,l \
+; RUN: llvm-as %S/Inputs/opaque-pointers.ll -o %t-opaque.bc
+; RUN: llvm-lto2 run -o %t-lto.bc %S/Inputs/typed.bc %t-opaque.bc -save-temps \
+; RUN:     -r %S/Inputs/typed.bc,call_foo,px -r %S/Inputs/typed.bc,foo,l \
 ; RUN:     -r %t-opaque.bc,foo,px
 ; RUN: opt -S -o - %t-lto.bc.0.4.opt.bc | FileCheck %s
 


        


More information about the llvm-commits mailing list