class Sema;
class SwitchCase;
class PCHReader;
+class PCHDeclReader;
struct HeaderFileInfo;
struct PCHPredefinesBlock {
public:
enum PCHReadResult { Success, Failure, IgnorePCH };
friend class PCHValidator;
+ friend class PCHDeclReader;
private:
/// \brief The receiver of some callbacks invoked by PCHReader.
llvm::OwningPtr<PCHReaderListener> Listener;
/// imported.
Sema *getSema() { return SemaObj; }
- /// \brief Retrieve the stream that this PCH reader is reading from.
- llvm::BitstreamCursor &getStream() { return Chain[0]->Stream; }
- llvm::BitstreamCursor &getDeclsCursor() { return Chain[0]->DeclsCursor; }
-
/// \brief Retrieve the identifier table associated with the
/// preprocessor.
IdentifierTable &getIdentifierTable();
} 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());
}
}