diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-14 17:45:50 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-14 17:45:50 +0000 |
commit | 8dd55a3c3b28d195717c87bbc60e765951d408fe (patch) | |
tree | 528647fd16f0712390fa100ef1691321e5e0936d /lib/CodeGen/CodeGenModule.cpp | |
parent | 4d461b691a57544340bf511bd662001fd2d1da1a (diff) |
Change intrinsic getter to take an ArrayRef, now that the underlying function in LLVM does.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index e40d146bc0..1cfd31862f 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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*> & |