diff options
author | Jacob Gravelle <jgravelle@google.com> | 2018-08-16 19:24:31 +0000 |
---|---|---|
committer | Jacob Gravelle <jgravelle@google.com> | 2018-08-16 19:24:31 +0000 |
commit | 3d668d392898f5ed8b893d356ab79e301c53f42c (patch) | |
tree | b03c74216ad00bb7d264de3caef3691e9a132c0d /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | |
parent | 9af86a5e01c389572be7c5bcf43b8de78db94bc3 (diff) | |
download | bcm5719-llvm-3d668d392898f5ed8b893d356ab79e301c53f42c.tar.gz bcm5719-llvm-3d668d392898f5ed8b893d356ab79e301c53f42c.zip |
[WebAssembly] Remove temporary workaround for function bitcasts
Summary:
EM_ASM no longer is lowered as varargs in C, so this workaround is
obsolete.
Reviewers: dschuff, sunfish
Subscribers: sbc100, aheejin, llvm-commits
Differential Revision: https://reviews.llvm.org/D50859
llvm-svn: 339925
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp index 4f6dcb113b7..742fe407223 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp @@ -257,11 +257,6 @@ bool FixFunctionBitcasts::runOnModule(Module &M) { if (!Ty) continue; - // Bitcasted vararg functions occur in Emscripten's implementation of - // EM_ASM, so suppress wrappers for them for now. - if (TemporaryWorkarounds && (Ty->isVarArg() || F->isVarArg())) - continue; - auto Pair = Wrappers.insert(std::make_pair(std::make_pair(F, Ty), nullptr)); if (Pair.second) Pair.first->second = CreateWrapper(F, Ty); |