summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-27 05:46:25 +0000
committerChris Lattner <sabre@nondot.org>2009-04-27 05:46:25 +0000
commit9c28af0cc5a7dace648f2c7a2028ed92f35abf1b (patch)
treeb33f2cb89bfd8fece41f2bfc419cf8eabc3207f5 /clang/lib
parentf4262539fa3f9fd2c62bbf4919361b3c0df63d63 (diff)
downloadbcm5719-llvm-9c28af0cc5a7dace648f2c7a2028ed92f35abf1b.tar.gz
bcm5719-llvm-9c28af0cc5a7dace648f2c7a2028ed92f35abf1b.zip
rename GetStmt -> GetDeclStmt to make it clear that the stmt read
is part of a decl. llvm-svn: 70189
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index 4ea1e05b887..4ec2a3a18aa 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud