From 875e26d34323119e0ff354cdd1979db1d1b295df Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 20 Apr 2020 12:48:04 -0700 Subject: [PATCH] Fix lld testcases I missed in D78413 (9b9454a) --- lld/test/ELF/Inputs/exclude-libs.ll | 4 ++-- lld/test/wasm/export.ll | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/test/ELF/Inputs/exclude-libs.ll b/lld/test/ELF/Inputs/exclude-libs.ll index 8bd947085f31..9e6cc6ff72ae 100644 --- a/lld/test/ELF/Inputs/exclude-libs.ll +++ b/lld/test/ELF/Inputs/exclude-libs.ll @@ -1,3 +1,3 @@ -@fn2 = global void()* null; - target triple = "x86_64-unknown-linux" + +@fn2 = global void()* null; diff --git a/lld/test/wasm/export.ll b/lld/test/wasm/export.ll index 06c5dfc8d786..18ff1c437e4d 100644 --- a/lld/test/wasm/export.ll +++ b/lld/test/wasm/export.ll @@ -10,10 +10,10 @@ ; RUN: wasm-ld --export=hidden_function -o %t.wasm %t.o ; RUN: obj2yaml %t.wasm | FileCheck %s --check-prefixes=CHECK,EMSCRIPTEN -@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @used_function to i8*)], section "llvm.metadata" - target triple = "wasm32-unknown-unknown" +@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @used_function to i8*)], section "llvm.metadata" + ; Not exported by default, but forced via commandline define hidden i32 @hidden_function() local_unnamed_addr { entry: