diff options
| author | James Y Knight <jyknight@google.com> | 2019-01-31 21:51:58 +0000 | 
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2019-01-31 21:51:58 +0000 | 
| commit | fadf25068e32b44b010e6e03c6ab93bec41eae82 (patch) | |
| tree | 9b22878f495e0b75d9e86cd01bcf199308dc9234 /llvm/lib/Target/WebAssembly | |
| parent | c62214da3de04f702e29e4ba4772c9463e2829ca (diff) | |
| download | bcm5719-llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.tar.gz bcm5719-llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.zip | |
Revert "[opaque pointer types] Add a FunctionCallee wrapper type, and use it."
This reverts commit f47d6b38c7a61d50db4566b02719de05492dcef1 (r352791).
Seems to run into compilation failures with GCC (but not clang, where
I tested it). Reverting while I investigate.
llvm-svn: 352800
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp index acfe49a0043..97f62f94dde 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp @@ -109,11 +109,10 @@ bool LowerGlobalDtors::runOnModule(Module &M) {        FunctionType::get(Type::getVoidTy(C), AtExitFuncArgs,                          /*isVarArg=*/false); -  FunctionCallee AtExit = M.getOrInsertFunction( -      "__cxa_atexit", -      FunctionType::get(Type::getInt32Ty(C), -                        {PointerType::get(AtExitFuncTy, 0), VoidStar, VoidStar}, -                        /*isVarArg=*/false)); +  Type *AtExitArgs[] = {PointerType::get(AtExitFuncTy, 0), VoidStar, VoidStar}; +  FunctionType *AtExitTy = FunctionType::get(Type::getInt32Ty(C), AtExitArgs, +                                             /*isVarArg=*/false); +  Constant *AtExit = M.getOrInsertFunction("__cxa_atexit", AtExitTy);    // Declare __dso_local.    Constant *DsoHandle = M.getNamedValue("__dso_handle"); | 

