forked from OSchip/llvm-project
normalize the CharacterLiteral::getLocation method name, patch
by Enea Zaffanella! llvm-svn: 79924
This commit is contained in:
parent
20464fba70
commit
e6434cb421
|
@ -444,7 +444,7 @@ public:
|
|||
/// \brief Construct an empty character literal.
|
||||
CharacterLiteral(EmptyShell Empty) : Expr(CharacterLiteralClass, Empty) { }
|
||||
|
||||
SourceLocation getLoc() const { return Loc; }
|
||||
SourceLocation getLocation() const { return Loc; }
|
||||
bool isWide() const { return IsWide; }
|
||||
|
||||
virtual SourceRange getSourceRange() const { return SourceRange(Loc); }
|
||||
|
|
|
@ -355,7 +355,7 @@ void PCHStmtWriter::VisitStringLiteral(StringLiteral *E) {
|
|||
void PCHStmtWriter::VisitCharacterLiteral(CharacterLiteral *E) {
|
||||
VisitExpr(E);
|
||||
Record.push_back(E->getValue());
|
||||
Writer.AddSourceLocation(E->getLoc(), Record);
|
||||
Writer.AddSourceLocation(E->getLocation(), Record);
|
||||
Record.push_back(E->isWide());
|
||||
Code = pch::EXPR_CHARACTER_LITERAL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue