diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-27 05:46:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-27 05:46:25 +0000 |
commit | 887e2b375fc5e00084ec7bf3dd050c2ca399a6d2 (patch) | |
tree | 8a3d3232d72f98e9dfc4f78ba08f82fc3468abb9 /lib/Frontend/PCHReader.cpp | |
parent | 52e97d1afc98cf4cf0a6cb8f43769dfd8acbab20 (diff) |
rename GetStmt -> GetDeclStmt to make it clear that the stmt read
is part of a decl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReader.cpp')
-rw-r--r-- | lib/Frontend/PCHReader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index 4ea1e05b88..4ec2a3a18a 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -1331,7 +1331,12 @@ Decl *PCHReader::GetDecl(pch::DeclID ID) { return DeclsLoaded[Index]; } -Stmt *PCHReader::GetStmt(uint64_t Offset) { +/// \brief Resolve the offset of a statement into a statement. +/// +/// This operation will read a new statement from the external +/// source each time it is called, and is meant to be used via a +/// LazyOffsetPtr (which is used by Decls for the body of functions, etc). +Stmt *PCHReader::GetDeclStmt(uint64_t Offset) { // Keep track of where we are in the stream, then jump back there // after reading this declaration. SavedStreamPosition SavedPosition(Stream); |