diff options
author | Sam Clegg <sbc@chromium.org> | 2018-11-01 19:38:44 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-11-01 19:38:44 +0000 |
commit | ddf049869a3ffc3e9ad69a8c9052057e443f566d (patch) | |
tree | bd33dd91cf981074806ab4b236c30c4a7b2265ef /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | |
parent | 46ff186b2938c089ffa05f1999d63ed3a4583411 (diff) | |
download | llvm-ddf049869a3ffc3e9ad69a8c9052057e443f566d.zip llvm-ddf049869a3ffc3e9ad69a8c9052057e443f566d.tar.gz llvm-ddf049869a3ffc3e9ad69a8c9052057e443f566d.tar.bz2 |
[WebAssembly] Fixup `main` signature by default
Differential Revision: https://reviews.llvm.org/D53396
llvm-svn: 345880
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp index 0644f12..dffc4d1 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp @@ -36,11 +36,6 @@ using namespace llvm; #define DEBUG_TYPE "wasm-fix-function-bitcasts" -static cl::opt<bool> - TemporaryWorkarounds("wasm-temporary-workarounds", - cl::desc("Apply certain temporary workarounds"), - cl::init(true), cl::Hidden); - namespace { class FixFunctionBitcasts final : public ModulePass { StringRef getPassName() const override { @@ -241,7 +236,7 @@ bool FixFunctionBitcasts::runOnModule(Module &M) { // "int main(int argc, char *argv[])", create an artificial call with it // bitcasted to that type so that we generate a wrapper for it, so that // the C runtime can call it. - if (!TemporaryWorkarounds && !F.isDeclaration() && F.getName() == "main") { + if (!F.isDeclaration() && F.getName() == "main") { Main = &F; LLVMContext &C = M.getContext(); Type *MainArgTys[] = {Type::getInt32Ty(C), |