diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-06 21:34:20 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-06 21:34:20 +0000 |
| commit | b0048027bae25332369080c6b73faab4143ed3e6 (patch) | |
| tree | 3319b90084b6ecc09af65b8983307907b2ed2f2a /clang/lib/Frontend/ResolveLocation.cpp | |
| parent | ba2410b7caa4968c3a91697acea4b3fa17ca94c1 (diff) | |
| download | bcm5719-llvm-b0048027bae25332369080c6b73faab4143ed3e6.tar.gz bcm5719-llvm-b0048027bae25332369080c6b73faab4143ed3e6.zip | |
Rename 'ASTNode' -> 'ASTLocation'.
ASTLocation is a much better name for its intended purpose which to represent a "point" into the AST.
llvm-svn: 74858
Diffstat (limited to 'clang/lib/Frontend/ResolveLocation.cpp')
| -rw-r--r-- | clang/lib/Frontend/ResolveLocation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/ResolveLocation.cpp b/clang/lib/Frontend/ResolveLocation.cpp index 5b8eed0c0ef..c2d32bbc90b 100644 --- a/clang/lib/Frontend/ResolveLocation.cpp +++ b/clang/lib/Frontend/ResolveLocation.cpp @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" -#include "clang/AST/ASTNode.h" +#include "clang/AST/ASTLocation.h" #include "clang/AST/DeclVisitor.h" #include "clang/AST/StmtVisitor.h" #include "clang/Lex/Lexer.h" @@ -321,11 +321,11 @@ void LocResolverBase::print(Stmt *Node) { /// \brief Returns the AST node that a source location points to. /// -ASTNode clang::ResolveLocationInAST(ASTContext &Ctx, SourceLocation Loc) { +ASTLocation clang::ResolveLocationInAST(ASTContext &Ctx, SourceLocation Loc) { if (Loc.isInvalid()) - return ASTNode(); + return ASTLocation(); DeclLocResolver DLR(Ctx, Loc); DLR.Visit(Ctx.getTranslationUnitDecl()); - return ASTNode(DLR.getDecl(), DLR.getStmt()); + return ASTLocation(DLR.getDecl(), DLR.getStmt()); } |

