[WebAssembly] Use Emscripten triples in PIC tests.
authorDan Gohman <dan433584@gmail.com>
Wed, 5 Jun 2019 20:59:20 +0000 (20:59 +0000)
committerDan Gohman <dan433584@gmail.com>
Wed, 5 Jun 2019 20:59:20 +0000 (20:59 +0000)
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.

llvm-svn: 362645

lld/test/wasm/pie.ll
lld/test/wasm/shared.ll

index 90952fa..e7aa243 100644 (file)
@@ -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
index 9fbbfc0..89fae33 100644 (file)
@@ -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