diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-24 17:39:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-24 17:39:36 +0000 |
commit | 018d8e0596dd57401eeddcf11ac84ff0a065fbbe (patch) | |
tree | 0b5ab75c9115081b1881dc25a7632af9eaac40dc | |
parent | 77a2b4f3618608be3e93b12df898d088f8e38337 (diff) |
normalize the CharacterLiteral::getLocation method name, patch
by Enea Zaffanella!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79924 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Expr.h | 2 | ||||
-rw-r--r-- | lib/Frontend/PCHWriterStmt.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index ade37beb1e..0a573ef69a 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -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); } diff --git a/lib/Frontend/PCHWriterStmt.cpp b/lib/Frontend/PCHWriterStmt.cpp index d62a8154c5..ffde5280ab 100644 --- a/lib/Frontend/PCHWriterStmt.cpp +++ b/lib/Frontend/PCHWriterStmt.cpp @@ -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; } |