diff options
author | Steve Naroff <snaroff@apple.com> | 2009-01-11 12:47:58 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-01-11 12:47:58 +0000 |
commit | ba3dc388403703d27b42ffe01cc4b723c60a2784 (patch) | |
tree | 4b7b69a815827d5b6be2e888208eac62d08fd938 /clang/lib/AST/DeclObjC.cpp | |
parent | e3108148e260096af91caee29051f6b6a710cc6e (diff) | |
download | bcm5719-llvm-ba3dc388403703d27b42ffe01cc4b723c60a2784.tar.gz bcm5719-llvm-ba3dc388403703d27b42ffe01cc4b723c60a2784.zip |
Convert property implementation to DeclContext::addDecl().
This completes the ObjCContainerDecl AST cleanup (for now).
llvm-svn: 62037
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index bac9f7b3444..c4caed1e00f 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -62,7 +62,6 @@ ObjCInterfaceDecl *ObjCInterfaceDecl::Create(ASTContext &C, } ObjCContainerDecl::~ObjCContainerDecl() { - delete [] PropertyDecl; } ObjCInterfaceDecl::~ObjCInterfaceDecl() { @@ -390,20 +389,9 @@ unsigned ObjCContainerDecl::getNumProperties() const { return sum; } -/// addProperties - Insert property declaration AST nodes into -/// ObjCContainerDecl's PropertyDecl field. -/// -void ObjCContainerDecl::addProperties(ObjCPropertyDecl **Properties, - unsigned NumProperties) { - if (NumProperties == 0) return; - - NumPropertyDecl = NumProperties; - PropertyDecl = new ObjCPropertyDecl*[NumProperties]; - memcpy(PropertyDecl, Properties, NumProperties*sizeof(ObjCPropertyDecl*)); -} - /// FindPropertyDeclaration - Finds declaration of the property given its name /// in 'PropertyId' and returns it. It returns 0, if not found. +/// FIXME: Convert to DeclContext lookup... /// ObjCPropertyDecl * ObjCContainerDecl::FindPropertyDeclaration(IdentifierInfo *PropertyId) const { |