From 6c6567e2390b7006f7d60a4417551e71da92c422 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 22 Jun 2018 15:13:10 +0000 Subject: Revert "[WebAssembly] Error on mismatched function signature in final output" This caused a lot of issues on the WebAssembly waterfall. In particular, until with the signature of `main`. We probably want a better solution for main before we re-land. Reverts rL335192 --- lld/wasm/Driver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lld/wasm/Driver.cpp') diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp index c24496c6ecc..70a36046ad9 100644 --- a/lld/wasm/Driver.cpp +++ b/lld/wasm/Driver.cpp @@ -483,8 +483,7 @@ void LinkerDriver::link(ArrayRef ArgsArr) { return; // Do size optimizations: garbage collection - if (Config->GcSections) - markLive(); + markLive(); // Write the result to the file. writeResult(); -- cgit v1.2.3