diff options
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
| -rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index afc3aa19598..2e3a06a956f 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -419,3 +419,15 @@ ObjCInterfaceDecl *const ObjCMethodDecl::getClassInterface() const { assert(false && "unknown method context"); return 0; } + +void ObjCPropertyDecl::setPropertyDeclLists(ObjCIvarDecl **Properties, + unsigned NumProp) { + assert(PropertyDecls == 0 && "Properties already set"); + if (NumProp == 0) return; + NumPropertyDecls = NumProp; + + PropertyDecls = new ObjCIvarDecl*[NumProp]; + memcpy(PropertyDecls, Properties, NumProp*sizeof(ObjCIvarDecl*)); +} + + |

