aboutsummaryrefslogtreecommitdiff
path: root/Parse/ParseObjc.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-03 11:27:19 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-03 11:27:19 +0000
commitbeaf299a2701c5559a4e5d76b0c40f805afb8e6a (patch)
tree6307897552c0d0a3eaf3e522980fa209a582e190 /Parse/ParseObjc.cpp
parent31e6c7ddfeeefe05b67220bc87fa23d4338d1056 (diff)
Implement rewrite rules for ObjC string constants.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseObjc.cpp')
-rw-r--r--Parse/ParseObjc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parse/ParseObjc.cpp b/Parse/ParseObjc.cpp
index 23d5f0e419..6464ca18c9 100644
--- a/Parse/ParseObjc.cpp
+++ b/Parse/ParseObjc.cpp
@@ -1155,7 +1155,7 @@ Parser::ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
switch (Tok.getKind()) {
case tok::string_literal: // primary-expression: string-literal
case tok::wide_string_literal:
- return ParsePostfixExpressionSuffix(ParseObjCStringLiteral());
+ return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc));
default:
break;
}
@@ -1285,12 +1285,12 @@ Parser::ExprResult Parser::ParseObjCMessageExpression() {
&KeyExprs[0]);
}
-Parser::ExprResult Parser::ParseObjCStringLiteral() {
+Parser::ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
ExprResult Res = ParseStringLiteralExpression();
if (Res.isInvalid) return Res;
- return Actions.ParseObjCStringLiteral(Res.Val);
+ return Actions.ParseObjCStringLiteral(AtLoc, Res.Val);
}
/// objc-encode-expression: