diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-04-04 18:23:00 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-04-04 18:23:00 +0000 |
commit | e03d45fa8e3190f81d06f3970e57b71b8875d9a4 (patch) | |
tree | 46cd6a9bd77ae1c1850bb737e8b8020a38c1d127 /llvm/lib/Analysis/TargetLibraryInfo.cpp | |
parent | 93ab79d205eac43867a593981f4476bb770e28a4 (diff) | |
download | bcm5719-llvm-e03d45fa8e3190f81d06f3970e57b71b8875d9a4.tar.gz bcm5719-llvm-e03d45fa8e3190f81d06f3970e57b71b8875d9a4.zip |
Revert "[Analysis] Support aligned new/delete functions."
This reverts commit bee3bbd9bdd3ab3364b8fb0cdb6326bc1ae740e0.
llvm-svn: 329217
Diffstat (limited to 'llvm/lib/Analysis/TargetLibraryInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetLibraryInfo.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp index ff6aae8b5ec..c605c91c11c 100644 --- a/llvm/lib/Analysis/TargetLibraryInfo.cpp +++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp @@ -992,26 +992,8 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, case LibFunc_msvc_new_array_int_nothrow: // new[](unsigned long long, nothrow); case LibFunc_msvc_new_array_longlong_nothrow: - // new(unsigned int, align_val_t) - case LibFunc_ZnwjSt11align_val_t: - // new(unsigned long, align_val_t) - case LibFunc_ZnwmSt11align_val_t: - // new[](unsigned int, align_val_t) - case LibFunc_ZnajSt11align_val_t: - // new[](unsigned long, align_val_t) - case LibFunc_ZnamSt11align_val_t: return (NumParams == 2 && FTy.getReturnType()->isPointerTy()); - // new(unsigned int, align_val_t, nothrow) - case LibFunc_ZnwjSt11align_val_tRKSt9nothrow_t: - // new(unsigned long, align_val_t, nothrow) - case LibFunc_ZnwmSt11align_val_tRKSt9nothrow_t: - // new[](unsigned int, align_val_t, nothrow) - case LibFunc_ZnajSt11align_val_tRKSt9nothrow_t: - // new[](unsigned long, align_val_t, nothrow) - case LibFunc_ZnamSt11align_val_tRKSt9nothrow_t: - return (NumParams == 3 && FTy.getReturnType()->isPointerTy()); - // void operator delete[](void*); case LibFunc_ZdaPv: // void operator delete(void*); @@ -1038,10 +1020,6 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, case LibFunc_ZdlPvj: // void operator delete(void*, unsigned long); case LibFunc_ZdlPvm: - // void operator delete(void*, align_val_t) - case LibFunc_ZdlPvSt11align_val_t: - // void operator delete[](void*, align_val_t) - case LibFunc_ZdaPvSt11align_val_t: // void operator delete[](void*, unsigned int); case LibFunc_msvc_delete_array_ptr32_int: // void operator delete[](void*, nothrow); @@ -1060,12 +1038,6 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, case LibFunc_msvc_delete_ptr64_nothrow: return (NumParams == 2 && FTy.getParamType(0)->isPointerTy()); - // void operator delete(void*, align_val_t, nothrow) - case LibFunc_ZdlPvSt11align_val_tRKSt9nothrow_t: - // void operator delete[](void*, align_val_t, nothrow) - case LibFunc_ZdaPvSt11align_val_tRKSt9nothrow_t: - return (NumParams == 3 && FTy.getParamType(0)->isPointerTy()); - case LibFunc_memset_pattern16: return (!FTy.isVarArg() && NumParams == 3 && FTy.getParamType(0)->isPointerTy() && |