summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
diff options
context:
space:
mode:
authorJacob Gravelle <jgravelle@google.com>2018-08-16 19:24:31 +0000
committerJacob Gravelle <jgravelle@google.com>2018-08-16 19:24:31 +0000
commit3d668d392898f5ed8b893d356ab79e301c53f42c (patch)
treeb03c74216ad00bb7d264de3caef3691e9a132c0d /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
parent9af86a5e01c389572be7c5bcf43b8de78db94bc3 (diff)
downloadbcm5719-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.cpp5
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);
OpenPOWER on IntegriCloud