aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-10-16 21:36:54 +0000
committerSteve Naroff <snaroff@apple.com>2007-10-16 21:36:54 +0000
commit3bea81bbae827195acfdf7bedfb7ac80c487dc63 (patch)
tree29e7a2551c67979f991921e822e9d4b8342031e2 /Sema/SemaDecl.cpp
parent05de8bc173c217f349f09b143bf5c6f6e82b87ae (diff)
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
Diffstat (limited to 'Sema/SemaDecl.cpp')
-rw-r--r--Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index 232c5ba2e2..bb100c67ce 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -1760,8 +1760,8 @@ void Sema::ActOnFields(Scope* S,
/// TODO: Handle protocol list; such as id<p1,p2> in type comparisons
bool Sema:: MatchTwoMethodDeclarations(const ObjcMethodDecl *Method,
const ObjcMethodDecl *PrevMethod) {
- if (Method->getMethodType().getCanonicalType() !=
- PrevMethod->getMethodType().getCanonicalType())
+ if (Method->getResultType().getCanonicalType() !=
+ PrevMethod->getResultType().getCanonicalType())
return false;
for (int i = 0; i < Method->getNumParams(); i++) {
ParmVarDecl *ParamDecl = Method->getParamDecl(i);