Remove ObjcMethodDecl::getNumMethodParams/getMethodParamDecl, they aren't used/needed.
Change ObjcMethodDecl::getMethodType to getResultType, to match FunctionDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43045 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index 082b718..896b318 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -1944,7 +1944,7 @@
SourceRange(lbrac, rbrac));
returnType = GetObjcIdType();
} else {
- returnType = Method->getMethodType();
+ returnType = Method->getResultType();
}
// Expr *RExpr = global reference to the class symbol...
Expr **ArgExprs = reinterpret_cast<Expr **>(Args);
@@ -1972,7 +1972,7 @@
SourceRange(lbrac, rbrac));
returnType = GetObjcIdType();
} else {
- returnType = Method->getMethodType();
+ returnType = Method->getResultType();
}
} else {
// FIXME (snaroff): checking in this code from Patrick. Needs to be
@@ -1995,7 +1995,7 @@
SourceRange(lbrac, rbrac));
returnType = GetObjcIdType();
} else {
- returnType = Method->getMethodType();
+ returnType = Method->getResultType();
}
}
Expr **ArgExprs = reinterpret_cast<Expr **>(Args);