[cfe-commits] r79924 - in /cfe/trunk: include/clang/AST/Expr.h lib/Frontend/PCHWriterStmt.cpp
Chris Lattner
sabre at nondot.org
Mon Aug 24 10:39:37 PDT 2009
Author: lattner
Date: Mon Aug 24 12:39:36 2009
New Revision: 79924
URL: http://llvm.org/viewvc/llvm-project?rev=79924&view=rev
Log:
normalize the CharacterLiteral::getLocation method name, patch
by Enea Zaffanella!
Modified:
cfe/trunk/include/clang/AST/Expr.h
cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=79924&r1=79923&r2=79924&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Mon Aug 24 12:39:36 2009
@@ -444,7 +444,7 @@
/// \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); }
Modified: cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterStmt.cpp?rev=79924&r1=79923&r2=79924&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterStmt.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterStmt.cpp Mon Aug 24 12:39:36 2009
@@ -355,7 +355,7 @@
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;
}
More information about the cfe-commits
mailing list