Fix serious regression with ObjcInterfaceDecl. Now that we are storing -1 to mean undefined, we need to change the respective getters from unsigned->int.

llvm-svn: 45179
This commit is contained in:
Steve Naroff 2007-12-18 21:41:31 +00:00
parent 166f746246
commit 824a9d8d4b
1 changed files with 3 additions and 3 deletions

View File

@ -785,10 +785,10 @@ public:
void setSuperClass(ObjcInterfaceDecl * superCls)
{ SuperClass = superCls; }
unsigned getNumInstanceMethods() const { return InstanceMethods.size(); }
unsigned getNumClassMethods() const { return ClassMethods.size(); }
int getNumInstanceMethods() const { return InstanceMethods.size(); }
int getNumClassMethods() const { return ClassMethods.size(); }
unsigned getImplDeclNumIvars() const { return NumIvars; }
int getImplDeclNumIvars() const { return NumIvars; }
typedef llvm::SmallVector<ObjcMethodDecl*, 32>::const_iterator