aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-04-08 02:55:55 +0000
committerAnders Carlsson <andersca@mac.com>2009-04-08 02:55:55 +0000
commita17d7ccc2ed77e321855990e180f2a34ec304bfc (patch)
tree7e751994646020d3b779e38310393a07cc22495e /lib/CodeGen/CGCall.cpp
parent437bb4b6ecf23bd016203dee80983402cdcb761e (diff)
Don't assume that a block always has a FunctionProtoType. Fixes rdar://6768379.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 43db767158..e3f824fc74 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -53,19 +53,6 @@ CGFunctionInfo &CodeGenTypes::getFunctionInfo(const FunctionProtoType *FTP) {
return getFunctionInfo(FTP->getResultType(), ArgTys);
}
-const
-CGFunctionInfo &CodeGenTypes::getFunctionInfo(const BlockPointerType *BPT) {
- llvm::SmallVector<QualType, 16> ArgTys;
- const FunctionProtoType *FTP =
- BPT->getPointeeType()->getAsFunctionProtoType();
-
- // Add the block pointer.
- ArgTys.push_back(Context.getPointerType(Context.VoidTy));
- for (unsigned i = 0, e = FTP->getNumArgs(); i != e; ++i)
- ArgTys.push_back(FTP->getArgType(i));
- return getFunctionInfo(FTP->getResultType(), ArgTys);
-}
-
const CGFunctionInfo &CodeGenTypes::getFunctionInfo(const CXXMethodDecl *MD) {
llvm::SmallVector<QualType, 16> ArgTys;
// Add the 'this' pointer.