diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-05-03 18:05:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-05-03 18:05:44 +0000 |
commit | fac3162022c02cdeb1d0060246ce9219c0a675dc (patch) | |
tree | 021edaaaf9538bf9229214145de8635932a2c443 /clang/lib/AST | |
parent | 4ce060b3da6b64c44e4d22b4a1a2111276ada553 (diff) | |
download | bcm5719-llvm-fac3162022c02cdeb1d0060246ce9219c0a675dc.tar.gz bcm5719-llvm-fac3162022c02cdeb1d0060246ce9219c0a675dc.zip |
Keep track of an @implementation's super class name location, if one was provided.
llvm-svn: 181039
Diffstat (limited to 'clang/lib/AST')
-rw-r--r-- | clang/lib/AST/ASTImporter.cpp | 1 | ||||
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp index 20b905c376b..04768d23569 100644 --- a/clang/lib/AST/ASTImporter.cpp +++ b/clang/lib/AST/ASTImporter.cpp @@ -3650,6 +3650,7 @@ Decl *ASTNodeImporter::VisitObjCImplementationDecl(ObjCImplementationDecl *D) { Iface, Super, Importer.Import(D->getLocation()), Importer.Import(D->getAtStartLoc()), + Importer.Import(D->getSuperLoc()), Importer.Import(D->getIvarLBraceLoc()), Importer.Import(D->getIvarRBraceLoc())); diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index ad09afe2694..b441f7ff1e2 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -1648,12 +1648,13 @@ ObjCImplementationDecl::Create(ASTContext &C, DeclContext *DC, ObjCInterfaceDecl *SuperDecl, SourceLocation nameLoc, SourceLocation atStartLoc, + SourceLocation superLoc, SourceLocation IvarLBraceLoc, SourceLocation IvarRBraceLoc) { if (ClassInterface && ClassInterface->hasDefinition()) ClassInterface = ClassInterface->getDefinition(); return new (C) ObjCImplementationDecl(DC, ClassInterface, SuperDecl, - nameLoc, atStartLoc, + nameLoc, atStartLoc, superLoc, IvarLBraceLoc, IvarRBraceLoc); } |