summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-12-02 23:11:13 +0000
committerSam Clegg <sbc@chromium.org>2017-12-02 23:11:13 +0000
commitd09a35666649eae5ee0abaf4befe37d70deaea38 (patch)
tree084d5854a316ea32d843a07541af8e7edfa57b14
parent494770403a9d764d367ed8428be139709b6dd29d (diff)
downloadbcm5719-llvm-d09a35666649eae5ee0abaf4befe37d70deaea38.tar.gz
bcm5719-llvm-d09a35666649eae5ee0abaf4befe37d70deaea38.zip
[WebAssembly] Pass through --undefined to Wasm LLD
This is a follow-on to D40724 (Wasm entrypoint changes #1, add `--undefined` argument to LLD). Patch by Nicholas Wilson Differential Revision: https://reviews.llvm.org/D40739 llvm-svn: 319623
-rw-r--r--clang/lib/Driver/ToolChains/WebAssembly.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/WebAssembly.cpp b/clang/lib/Driver/ToolChains/WebAssembly.cpp
index d00d833fbb0..8ae1b6c2f55 100644
--- a/clang/lib/Driver/ToolChains/WebAssembly.cpp
+++ b/clang/lib/Driver/ToolChains/WebAssembly.cpp
@@ -47,6 +47,7 @@ void wasm::Linker::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("--strip-all");
Args.AddAllArgs(CmdArgs, options::OPT_L);
+ Args.AddAllArgs(CmdArgs, options::OPT_u);
ToolChain.AddFilePathLibArgs(Args, CmdArgs);
if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles))
OpenPOWER on IntegriCloud