OSDN Git Service

[WebAssembly] Remove temporary workaround for function bitcasts
authorJacob Gravelle <jgravelle@google.com>
Thu, 16 Aug 2018 19:24:31 +0000 (19:24 +0000)
committerJacob Gravelle <jgravelle@google.com>
Thu, 16 Aug 2018 19:24:31 +0000 (19:24 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339925 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp

index 4f6dcb1..742fe40 100644 (file)
@@ -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);