Fix test/tools/gold/X86/thinlto_funcimport.ll on non-X86 hosts
authorJohn Brawn <john.brawn@arm.com>
Fri, 11 Nov 2016 14:12:15 +0000 (14:12 +0000)
committerJohn Brawn <john.brawn@arm.com>
Fri, 11 Nov 2016 14:12:15 +0000 (14:12 +0000)
Pass -m elf_x86_64 to gold, as is done in other tests.

llvm-svn: 286593

llvm/test/tools/gold/X86/thinlto_funcimport.ll

index d00b42d..fbfa028 100644 (file)
@@ -2,7 +2,7 @@
 ; RUN: opt -module-summary %s -o %t1.bc
 ; RUN: opt -module-summary %p/Inputs/thinlto_funcimport.ll -o %t2.bc
 
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=save-temps \
 ; RUN:    --plugin-opt=thinlto \
 ; RUN:    -shared %t1.bc %t2.bc -o %t
@@ -11,7 +11,7 @@
 
 ; We shouldn't do any importing at -O0
 ; rm -f %t2.bc.3.import.bc
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=save-temps \
 ; RUN:    --plugin-opt=thinlto \
 ; RUN:    --plugin-opt=O0 \