diff options
| author | Sam Clegg <sbc@chromium.org> | 2019-02-01 02:29:57 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2019-02-01 02:29:57 +0000 |
| commit | 7cc0753118473b5a1c646b826819b294a55c302e (patch) | |
| tree | 5cd1280d804cc17bb7f2edf5171d3368c33a5075 /lld/wasm/LTO.cpp | |
| parent | 13680223b9d80bb01e17372f0907cf215e424cce (diff) | |
| download | bcm5719-llvm-7cc0753118473b5a1c646b826819b294a55c302e.tar.gz bcm5719-llvm-7cc0753118473b5a1c646b826819b294a55c302e.zip | |
[WebAssembly] Support imports from custom module names
Fixes: https://bugs.llvm.org/show_bug.cgi?id=37168
This is only a first pass at supporting these custom import
modules. In the long run we most likely want to treat these
kinds of symbols very differently. For example, it should not
be possible to resolve such as symbol at static link type.
Differential Revision: https://reviews.llvm.org/D45796
llvm-svn: 352828
Diffstat (limited to 'lld/wasm/LTO.cpp')
| -rw-r--r-- | lld/wasm/LTO.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/LTO.cpp b/lld/wasm/LTO.cpp index 584893d75b8..0e76dc214ed 100644 --- a/lld/wasm/LTO.cpp +++ b/lld/wasm/LTO.cpp @@ -80,8 +80,8 @@ BitcodeCompiler::~BitcodeCompiler() = default; static void undefine(Symbol *S) { if (auto F = dyn_cast<DefinedFunction>(S)) - replaceSymbol<UndefinedFunction>(F, F->getName(), 0, F->getFile(), - F->Signature); + replaceSymbol<UndefinedFunction>(F, F->getName(), kDefaultModule, 0, + F->getFile(), F->Signature); else if (isa<DefinedData>(S)) replaceSymbol<UndefinedData>(S, S->getName(), 0, S->getFile()); else |

