summaryrefslogtreecommitdiffstats
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
commitffd0aaf810e7dbae871c046a9b3c48ae0a7d7eb0 (patch)
tree073d1fc9d8b79126d1cb8a6cb68c9616d0a0e011 /lld/wasm/Driver.cpp
parenta99b3759bfc34a253a271f5bc8f5c7a6c2cfd284 (diff)
downloadbcm5719-llvm-ffd0aaf810e7dbae871c046a9b3c48ae0a7d7eb0.tar.gz
bcm5719-llvm-ffd0aaf810e7dbae871c046a9b3c48ae0a7d7eb0.zip
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 llvm-svn: 335355
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();
OpenPOWER on IntegriCloud