From: Fariborz Jahanian Date: Tue, 17 Nov 2009 17:15:16 +0000 (+0000) Subject: Fixes a typo, reported by Doug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ac7104947020a60430ba6f519cd5869af77046f;p=clang Fixes a typo, reported by Doug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89107 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index f436a75e29..e7dabdbd5b 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -179,7 +179,7 @@ public: /// the EOF was encountered. bool ParseTopLevelDecl(DeclGroupPtrTy &Result); - DeclGroupPtrTy RetreivePendingObjCImpDecl(); + DeclGroupPtrTy RetrievePendingObjCImpDecl(); private: //===--------------------------------------------------------------------===// diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 2ae0c690ca..6ca2314ef4 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -1137,7 +1137,7 @@ Parser::DeclPtrTy Parser::ParseObjCAtEndDeclaration(SourceLocation atLoc) { return Result; } -Parser::DeclGroupPtrTy Parser::RetreivePendingObjCImpDecl() { +Parser::DeclGroupPtrTy Parser::RetrievePendingObjCImpDecl() { if (PendingObjCImpDecl.empty()) return Actions.ConvertDeclToDeclGroup(DeclPtrTy()); DeclPtrTy ImpDecl = PendingObjCImpDecl.pop_back_val(); diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp index dc0daae4dc..7b223a8fa3 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -72,7 +72,7 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, Consumer->HandleTopLevelDecl(ADecl.getAsVal()); }; // Check for any pending objective-c implementation decl. - while ((ADecl = P.RetreivePendingObjCImpDecl())) + while ((ADecl = P.RetrievePendingObjCImpDecl())) Consumer->HandleTopLevelDecl(ADecl.getAsVal()); // process any TopLevelDecls generated by #pragma weak