diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-03 06:36:36 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-03 06:36:36 +0000 |
| commit | dfd657064376ff288fe23318ccc51164b61677ef (patch) | |
| tree | 7e2e177cf72cfcd921e3073c636c8c521dc4ce1b /clang/lib/Sema/SemaObjCProperty.cpp | |
| parent | 3849394b819c05fdbd1c3437c263b75482ebdb34 (diff) | |
| download | bcm5719-llvm-dfd657064376ff288fe23318ccc51164b61677ef.tar.gz bcm5719-llvm-dfd657064376ff288fe23318ccc51164b61677ef.zip | |
Pass from the parser the locations of selector identifiers when creating
objc method decls.
They are not stored in the AST yet.
llvm-svn: 140984
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 655adde37e2..a6f21fbf963 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -1518,6 +1518,7 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property, property->getLocation(); GetterMethod = ObjCMethodDecl::Create(Context, Loc, Loc, + ArrayRef<SourceLocation>(), property->getGetterName(), property->getType(), 0, CD, /*isInstance=*/true, /*isVariadic=*/false, /*isSynthesized=*/true, @@ -1555,7 +1556,7 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property, property->getLocation(); SetterMethod = - ObjCMethodDecl::Create(Context, Loc, Loc, + ObjCMethodDecl::Create(Context, Loc, Loc, ArrayRef<SourceLocation>(), property->getSetterName(), Context.VoidTy, 0, CD, /*isInstance=*/true, /*isVariadic=*/false, /*isSynthesized=*/true, |

