]> granicus.if.org Git - clang/commitdiff
normalize the CharacterLiteral::getLocation method name, patch
authorChris Lattner <sabre@nondot.org>
Mon, 24 Aug 2009 17:39:36 +0000 (17:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Aug 2009 17:39:36 +0000 (17:39 +0000)
by Enea Zaffanella!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79924 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h
lib/Frontend/PCHWriterStmt.cpp

index ade37beb1e23fbacb0ff5c4118f3aab5ccb90219..0a573ef69a7d37e54429bf93a29070564827f73d 100644 (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); }
index d62a8154c50ae34a8ff0cbcdd4b51db27ae412f5..ffde5280abedec6af9531a4c01784f1555bed543 100644 (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;
 }