aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/AST/DeclObjC.cpp4
-rw-r--r--lib/Sema/SemaDeclObjC.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index a1011b830e..5da762e1fb 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -452,8 +452,8 @@ void ObjCProtocolDecl::addMethods(ObjCMethodDecl **insMethods,
AtEndLoc = endLoc;
}
-void ObjCCategoryDecl::setReferencedProtocolList(ObjCProtocolDecl **List,
- unsigned NumRPs) {
+void ObjCCategoryDecl::addReferencedProtocols(ObjCProtocolDecl **List,
+ unsigned NumRPs) {
assert(NumReferencedProtocols == 0 && "Protocol list already set");
if (NumRPs == 0) return;
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 8cceda2966..ad40cbe845 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -435,7 +435,7 @@ Sema::DeclTy *Sema::ActOnStartCategoryInterface(
RefProtocols.push_back(RefPDecl);
}
if (!RefProtocols.empty())
- CDecl->setReferencedProtocolList(&RefProtocols[0], RefProtocols.size());
+ CDecl->addReferencedProtocols(&RefProtocols[0], RefProtocols.size());
}
CDecl->setLocEnd(EndProtoLoc);
return CDecl;