summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-07-14 17:45:50 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-07-14 17:45:50 +0000
commit8d375cef55625065b1cf2bc5dadeaf91d6e900e6 (patch)
treea27c7677c078eb3e371c18f731955779d520fd4e /clang/lib/CodeGen/CodeGenModule.cpp
parente6e1933f31f5e75989e5f4871f7292e2bd1a007f (diff)
downloadbcm5719-llvm-8d375cef55625065b1cf2bc5dadeaf91d6e900e6.tar.gz
bcm5719-llvm-8d375cef55625065b1cf2bc5dadeaf91d6e900e6.zip
Change intrinsic getter to take an ArrayRef, now that the underlying function in LLVM does.
llvm-svn: 135155
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index e40d146bc06..1cfd31862f7 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1612,10 +1612,10 @@ llvm::Value *CodeGenModule::getBuiltinLibFunction(const FunctionDecl *FD,
return GetOrCreateLLVMFunction(Name, Ty, D, /*ForVTable=*/false);
}
-llvm::Function *CodeGenModule::getIntrinsic(unsigned IID, llvm::Type **Tys,
- unsigned NumTys) {
+llvm::Function *CodeGenModule::getIntrinsic(unsigned IID,
+ llvm::ArrayRef<llvm::Type*> Tys) {
return llvm::Intrinsic::getDeclaration(&getModule(), (llvm::Intrinsic::ID)IID,
- Tys, NumTys);
+ Tys);
}
static llvm::StringMapEntry<llvm::Constant*> &
OpenPOWER on IntegriCloud