diff options
author | Anders Carlsson <andersca@mac.com> | 2011-04-14 00:40:03 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-04-14 00:40:03 +0000 |
commit | 3e2193ce5feb2feb092e5ae615e85148e06e9fd2 (patch) | |
tree | 3e08e06ac3a9a0cf0c798a7f20970bf2a056bc7e /lib/AST/Expr.cpp | |
parent | ddd7a3d6dc98c5c6e807910d255b738d8559a231 (diff) |
Add a flag to StringLiteral to keep track of whether the string is a pascal string or not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 59de3fe6ee..259c39c7d8 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -511,7 +511,7 @@ double FloatingLiteral::getValueAsApproximateDouble() const { StringLiteral *StringLiteral::Create(ASTContext &C, const char *StrData, unsigned ByteLength, bool Wide, - QualType Ty, + bool Pascal, QualType Ty, const SourceLocation *Loc, unsigned NumStrs) { // Allocate enough space for the StringLiteral plus an array of locations for @@ -527,6 +527,7 @@ StringLiteral *StringLiteral::Create(ASTContext &C, const char *StrData, SL->StrData = AStrData; SL->ByteLength = ByteLength; SL->IsWide = Wide; + SL->IsPascal = Pascal; SL->TokLocs[0] = Loc[0]; SL->NumConcatenated = NumStrs; |