diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-07-26 04:03:38 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 04:03:38 +0000 | 
| commit | 3bbae00f501231e0eea9d7be6086aace69c27f1b (patch) | |
| tree | 68f4d552217f1e0b761cc07b32464d465dc273dd /clang/lib/Parse/ParseDecl.cpp | |
| parent | 9c1842b612f413325b28e77b4d23c0818f6f5e93 (diff) | |
| download | bcm5719-llvm-3bbae00f501231e0eea9d7be6086aace69c27f1b.tar.gz bcm5719-llvm-3bbae00f501231e0eea9d7be6086aace69c27f1b.zip | |
pull protocol resolution out into ActOnStartProtocolInterface.
This temporarily duplicates ParseObjCProtocolReferences, but it
will be removed in the future.
llvm-svn: 54092
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 13 | 
1 files changed, 2 insertions, 11 deletions
| diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index e047d601ef0..f66bb99962e 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -431,13 +431,8 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS) {          continue;        SourceLocation EndProtoLoc; -      llvm::SmallVector<IdentifierLocPair, 8> ProtocolRefs; -      ParseObjCProtocolReferences(ProtocolRefs, EndProtoLoc); -              llvm::SmallVector<DeclTy *, 8> ProtocolDecl; -      Actions.FindProtocolDeclaration(Loc, false, -                                      &ProtocolRefs[0], ProtocolRefs.size(), -                                      ProtocolDecl); +      ParseObjCProtocolReferences(ProtocolDecl, false, EndProtoLoc);        DS.setProtocolQualifiers(&ProtocolDecl[0], ProtocolDecl.size());        DS.SetRangeEnd(EndProtoLoc); @@ -572,12 +567,8 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS) {        {          SourceLocation EndProtoLoc; -        llvm::SmallVector<IdentifierLocPair, 8> ProtocolRefs; -        ParseObjCProtocolReferences(ProtocolRefs, EndProtoLoc);          llvm::SmallVector<DeclTy *, 8> ProtocolDecl; -        Actions.FindProtocolDeclaration(Loc, false, -                                        &ProtocolRefs[0], ProtocolRefs.size(), -                                        ProtocolDecl); +        ParseObjCProtocolReferences(ProtocolDecl, false, EndProtoLoc);          DS.setProtocolQualifiers(&ProtocolDecl[0], ProtocolDecl.size());          DS.SetRangeEnd(EndProtoLoc); | 

