summaryrefslogtreecommitdiff
path: root/lld/wasm/Driver.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-06-22 15:13:10 +0000
committerSam Clegg <sbc@chromium.org>2018-06-22 15:13:10 +0000
commit6c6567e2390b7006f7d60a4417551e71da92c422 (patch)
tree8fb516a270f00b6117bbe621f8004babe049f195 /lld/wasm/Driver.cpp
parent1bfc38d8602b04b8b83a54900191903419026b37 (diff)
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
Diffstat (limited to 'lld/wasm/Driver.cpp')
-rw-r--r--lld/wasm/Driver.cpp3
1 files changed, 1 insertions, 2 deletions
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<const char *> ArgsArr) {
return;
// Do size optimizations: garbage collection
- if (Config->GcSections)
- markLive();
+ markLive();
// Write the result to the file.
writeResult();