]> granicus.if.org Git - llvm/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286593 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/gold/X86/thinlto_funcimport.ll

index d00b42d54bb821893b5417c6721cbb876baa3885..fbfa0282508022732f0bba5d2799ccc208c59d53 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 \