summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IntrinsicLowering.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-04-06 20:23:57 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-04-06 20:23:57 +0000
commitdb11fdfda50017e0175602fec9949aa34141656a (patch)
tree97064cff0f2304c6d9c6f15e2a7c4f90fbbf9f8b /llvm/lib/CodeGen/IntrinsicLowering.cpp
parent98240e964366419bdbdb34706811f44e705d6786 (diff)
downloadbcm5719-llvm-db11fdfda50017e0175602fec9949aa34141656a.tar.gz
bcm5719-llvm-db11fdfda50017e0175602fec9949aa34141656a.zip
Revert "Turn some C-style vararg into variadic templates"
This reverts commit r299699, the examples needs to be updated. llvm-svn: 299702
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index 509000524d5..afd24067ace 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp
@@ -111,19 +111,25 @@ void IntrinsicLowering::AddPrototypes(Module &M) {
Type::getVoidTy(M.getContext()));
break;
case Intrinsic::memcpy:
- M.getOrInsertFunction(
- "memcpy", Type::getInt8PtrTy(Context), Type::getInt8PtrTy(Context),
- Type::getInt8PtrTy(Context), DL.getIntPtrType(Context));
+ M.getOrInsertFunction("memcpy",
+ Type::getInt8PtrTy(Context),
+ Type::getInt8PtrTy(Context),
+ Type::getInt8PtrTy(Context),
+ DL.getIntPtrType(Context), nullptr);
break;
case Intrinsic::memmove:
- M.getOrInsertFunction(
- "memmove", Type::getInt8PtrTy(Context), Type::getInt8PtrTy(Context),
- Type::getInt8PtrTy(Context), DL.getIntPtrType(Context));
+ M.getOrInsertFunction("memmove",
+ Type::getInt8PtrTy(Context),
+ Type::getInt8PtrTy(Context),
+ Type::getInt8PtrTy(Context),
+ DL.getIntPtrType(Context), nullptr);
break;
case Intrinsic::memset:
- M.getOrInsertFunction(
- "memset", Type::getInt8PtrTy(Context), Type::getInt8PtrTy(Context),
- Type::getInt32Ty(M.getContext()), DL.getIntPtrType(Context));
+ M.getOrInsertFunction("memset",
+ Type::getInt8PtrTy(Context),
+ Type::getInt8PtrTy(Context),
+ Type::getInt32Ty(M.getContext()),
+ DL.getIntPtrType(Context), nullptr);
break;
case Intrinsic::sqrt:
EnsureFPIntrinsicsExist(M, F, "sqrtf", "sqrt", "sqrtl");
OpenPOWER on IntegriCloud