diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-12-31 00:28:03 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-12-31 00:28:03 +0000 |
commit | d32b94d4d685522d1552d3d1345ae9616d7f27ab (patch) | |
tree | 2a477a31c726c44d594e19653b18bdedf33e6e55 /lib/Parse/ParseObjc.cpp | |
parent | d11f4355a77ab1f8897847d9a458b9f2447d44a4 (diff) | |
download | clang-d32b94d4d685522d1552d3d1345ae9616d7f27ab.tar.gz clang-d32b94d4d685522d1552d3d1345ae9616d7f27ab.tar.bz2 clang-d32b94d4d685522d1552d3d1345ae9616d7f27ab.tar.xz |
Remove some remnants of OwningExprResult / OwningStmtResult.
These got deleted late 2010 during the Actions/Sema unification.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseObjc.cpp')
-rw-r--r-- | lib/Parse/ParseObjc.cpp | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 6f162fa191..797fafc3a1 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -2589,8 +2589,8 @@ ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) { AtStrings.push_back(Lit.release()); } - return Owned(Actions.ParseObjCStringLiteral(&AtLocs[0], AtStrings.data(), - AtStrings.size())); + return Actions.ParseObjCStringLiteral(&AtLocs[0], AtStrings.data(), + AtStrings.size()); } /// ParseObjCBooleanLiteral - @@ -2613,7 +2613,7 @@ ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) { return Lit; } ConsumeToken(); // Consume the literal token. - return Owned(Actions.BuildObjCNumericLiteral(AtLoc, Lit.take())); + return Actions.BuildObjCNumericLiteral(AtLoc, Lit.take()); } /// ParseObjCNumericLiteral - @@ -2627,7 +2627,7 @@ ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) { return Lit; } ConsumeToken(); // Consume the literal token. - return Owned(Actions.BuildObjCNumericLiteral(AtLoc, Lit.take())); + return Actions.BuildObjCNumericLiteral(AtLoc, Lit.take()); } /// ParseObjCBoxedExpr - @@ -2651,8 +2651,8 @@ Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) { // a boxed expression from a literal. SourceLocation LPLoc = T.getOpenLocation(), RPLoc = T.getCloseLocation(); ValueExpr = Actions.ActOnParenExpr(LPLoc, RPLoc, ValueExpr.take()); - return Owned(Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc), - ValueExpr.take())); + return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc), + ValueExpr.take()); } ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) { @@ -2685,7 +2685,7 @@ ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) { } SourceLocation EndLoc = ConsumeBracket(); // location of ']' MultiExprArg Args(ElementExprs); - return Owned(Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args)); + return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args); } ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) { @@ -2741,9 +2741,8 @@ ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) { SourceLocation EndLoc = ConsumeBrace(); // Create the ObjCDictionaryLiteral. - return Owned(Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc), - Elements.data(), - Elements.size())); + return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc), + Elements.data(), Elements.size()); } /// objc-encode-expression: @@ -2767,9 +2766,8 @@ Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) { if (Ty.isInvalid()) return ExprError(); - return Owned(Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, - T.getOpenLocation(), Ty.get(), - T.getCloseLocation())); + return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(), + Ty.get(), T.getCloseLocation()); } /// objc-protocol-expression @@ -2792,10 +2790,9 @@ Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) { T.consumeClose(); - return Owned(Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc, - T.getOpenLocation(), - ProtoIdLoc, - T.getCloseLocation())); + return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc, + T.getOpenLocation(), ProtoIdLoc, + T.getCloseLocation()); } /// objc-selector-expression @@ -2856,9 +2853,9 @@ ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) { } T.consumeClose(); Selector Sel = PP.getSelectorTable().getSelector(nColons, &KeyIdents[0]); - return Owned(Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc, - T.getOpenLocation(), - T.getCloseLocation())); + return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc, + T.getOpenLocation(), + T.getCloseLocation()); } void Parser::ParseLexedObjCMethodDefs(LexedMethod &LM, bool parseMethod) { |