diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-19 22:38:35 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-19 22:38:35 +0000 |
commit | 3d3f0b103940b63fb1c84f372d51ba1268b9b21f (patch) | |
tree | e0c479d8ec9198c2a0b4c1203f30fa2bfb6afd61 /clang/lib/Frontend/PCHReaderDecl.cpp | |
parent | bd1b5befee29bcd9bddc9da896840f02d7ec7469 (diff) | |
download | bcm5719-llvm-3d3f0b103940b63fb1c84f372d51ba1268b9b21f.tar.gz bcm5719-llvm-3d3f0b103940b63fb1c84f372d51ba1268b9b21f.zip |
Remove PCHReader::getStream(), it was unused. Inline PCHReader::getDelsCursor() into its sole caller and remove it. This reduces the attack surface of multiple PCH files towards code outside the PCH implementation.
llvm-svn: 108763
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReaderDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp index e494f7c9345..0231fa66a95 100644 --- a/clang/lib/Frontend/PCHReaderDecl.cpp +++ b/clang/lib/Frontend/PCHReaderDecl.cpp @@ -117,7 +117,7 @@ void PCHDeclReader::Visit(Decl *D) { } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { // FunctionDecl's body was written last after all other Stmts/Exprs. if (Record[Idx++]) - FD->setLazyBody(Reader.getDeclsCursor().GetCurrentBitNo()); + FD->setLazyBody(Reader.Chain[0]->DeclsCursor.GetCurrentBitNo()); } } |