summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Bishop <sam@bishop.dhs.org>2008-04-08 20:49:25 +0000
committerSam Bishop <sam@bishop.dhs.org>2008-04-08 20:49:25 +0000
commit506215c708a61932d74d78dab495737093231014 (patch)
treee87bad6bbbc2d5a84f642e7e0156b79166ae863e
parent0a14b5b6492dc1b425a6baca115d5c77ad24e935 (diff)
downloadbcm5719-llvm-506215c708a61932d74d78dab495737093231014.tar.gz
bcm5719-llvm-506215c708a61932d74d78dab495737093231014.zip
Changed the Decl::Kind enum of the ObjCPropertyDecl class, so that it follows
the pattern of the other Decl classes. llvm-svn: 49399
-rw-r--r--clang/include/clang/AST/DeclBase.h2
-rw-r--r--clang/include/clang/AST/DeclObjC.h4
-rw-r--r--clang/lib/AST/Decl.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h
index a78d04476a9..d1b48b8a621 100644
--- a/clang/include/clang/AST/DeclBase.h
+++ b/clang/include/clang/AST/DeclBase.h
@@ -42,7 +42,7 @@ public:
ObjCCategoryImpl,
ObjCImplementation,
ObjCProtocol,
- PropertyDecl,
+ ObjCProperty,
// ScopedDecl
// TypeDecl
Typedef,
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h
index a1e0f256fc7..e9d03a1769c 100644
--- a/clang/include/clang/AST/DeclObjC.h
+++ b/clang/include/clang/AST/DeclObjC.h
@@ -952,7 +952,7 @@ private:
IdentifierInfo *SetterName; // setter name of NULL if no setter
ObjCPropertyDecl(SourceLocation L)
- : Decl(PropertyDecl, L), PropertyDecls(0), NumPropertyDecls(0),
+ : Decl(ObjCProperty, L), PropertyDecls(0), NumPropertyDecls(0),
PropertyAttributes(OBJC_PR_noattr), GetterName(0), SetterName(0) {}
public:
static ObjCPropertyDecl *Create(ASTContext &C, SourceLocation L);
@@ -983,7 +983,7 @@ public:
void setSetterName(IdentifierInfo *Id) { SetterName = Id; }
static bool classof(const Decl *D) {
- return D->getKind() == PropertyDecl;
+ return D->getKind() == ObjCProperty;
}
static bool classof(const ObjCPropertyDecl *D) { return true; }
};
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 8228eceebf6..afe4fcd37f1 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -194,7 +194,7 @@ void Decl::addDeclKind(Kind k) {
case ObjCImplementation: nObjCImplementationDecls++; break;
case ObjCCategoryImpl: nObjCCategoryImpl++; break;
case ObjCCompatibleAlias: nObjCCompatibleAlias++; break;
- case PropertyDecl: nObjCPropertyDecl++; break;
+ case ObjCProperty: nObjCPropertyDecl++; break;
case LinkageSpec: nLinkageSpecDecl++; break;
case FileScopeAsm: nFileScopeAsmDecl++; break;
}
OpenPOWER on IntegriCloud