normalize the CharacterLiteral::getLocation method name, patch

by Enea Zaffanella!

llvm-svn: 79924
This commit is contained in:
Chris Lattner 2009-08-24 17:39:36 +00:00
parent 20464fba70
commit e6434cb421
2 changed files with 2 additions and 2 deletions

View File

@ -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); }

View File

@ -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;
}