[lld] r362645 - [WebAssembly] Use Emscripten triples in PIC tests.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 13:59:20 PDT 2019


Author: djg
Date: Wed Jun  5 13:59:20 2019
New Revision: 362645

URL: http://llvm.org/viewvc/llvm-project?rev=362645&view=rev
Log:
[WebAssembly] Use Emscripten triples in PIC tests.

With r362638, llc doesn't support -relocation-model=pic with non-Emscripten
triples. Update these tests in lld which use -relocation-model=pic to also
use Emscripten triples.

Modified:
    lld/trunk/test/wasm/pie.ll
    lld/trunk/test/wasm/shared.ll

Modified: lld/trunk/test/wasm/pie.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/wasm/pie.ll?rev=362645&r1=362644&r2=362645&view=diff
==============================================================================
--- lld/trunk/test/wasm/pie.ll (original)
+++ lld/trunk/test/wasm/pie.ll Wed Jun  5 13:59:20 2019
@@ -2,7 +2,7 @@
 ; RUN: wasm-ld --no-gc-sections --allow-undefined -pie -o %t.wasm %t.o
 ; RUN: obj2yaml %t.wasm | FileCheck %s
 
-target triple = "wasm32-unknown-unknown"
+target triple = "wasm32-unknown-emscripten"
 
 @data = global i32 2, align 4
 @data_external = external global i32

Modified: lld/trunk/test/wasm/shared.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/wasm/shared.ll?rev=362645&r1=362644&r2=362645&view=diff
==============================================================================
--- lld/trunk/test/wasm/shared.ll (original)
+++ lld/trunk/test/wasm/shared.ll Wed Jun  5 13:59:20 2019
@@ -2,7 +2,7 @@
 ; RUN: wasm-ld -shared -o %t.wasm %t.o
 ; RUN: obj2yaml %t.wasm | FileCheck %s
 
-target triple = "wasm32-unknown-unknown"
+target triple = "wasm32-unknown-emscripten"
 
 @data = hidden global i32 2, align 4
 @data_external = external global i32




More information about the llvm-commits mailing list