remove some obsolete interfaces.

llvm-svn: 42014
This commit is contained in:
Chris Lattner 2007-09-16 19:47:56 +00:00
parent 7ea6ca70f5
commit 93c7f855e5
2 changed files with 0 additions and 49 deletions

View File

@ -119,29 +119,3 @@ void clang::ParseAST(Preprocessor &PP, unsigned MainFileID,
Stmt::CollectingStats(false);
}
}
/// ASTStreamer_Init - Create an ASTStreamer with the specified preprocessor
/// and FileID.
ASTStreamerTy *clang::ASTStreamer_Init(Preprocessor &pp, ASTContext &ctxt,
unsigned MainFileID) {
return new ASTStreamer(pp, ctxt, MainFileID);
}
/// ASTStreamer_ReadTopLevelDecl - Parse and return one top-level declaration.
/// This returns null at end of file.
Decl *clang::ASTStreamer_ReadTopLevelDecl(ASTStreamerTy *Streamer) {
return static_cast<ASTStreamer*>(Streamer)->ReadTopLevelDecl();
}
/// ASTStreamer_PrintStats - Emit statistic information to stderr.
///
void clang::ASTStreamer_PrintStats(ASTStreamerTy *Streamer) {
return static_cast<ASTStreamer*>(Streamer)->PrintStats();
}
/// ASTStreamer_Terminate - Gracefully shut down the streamer.
///
void clang::ASTStreamer_Terminate(ASTStreamerTy *Streamer) {
delete static_cast<ASTStreamer*>(Streamer);
}

View File

@ -24,29 +24,6 @@ namespace clang {
/// the file is parsed. This does not take ownership of the ASTConsumer.
void ParseAST(Preprocessor &pp, unsigned MainFileID,
ASTConsumer &C, bool PrintStats = false);
/// ASTStreamerTy - This is an opaque type used to reference ASTStreamer
/// objects.
typedef void ASTStreamerTy;
/// ASTStreamer_Init - Create an ASTStreamer with the specified ASTContext
/// and FileID.
ASTStreamerTy *ASTStreamer_Init(Preprocessor &pp, ASTContext &ctxt,
unsigned MainFileID);
/// ASTStreamer_ReadTopLevelDecl - Parse and return one top-level declaration.
/// This returns null at end of file.
Decl *ASTStreamer_ReadTopLevelDecl(ASTStreamerTy *Streamer);
/// ASTStreamer_PrintStats - Emit statistic information to stderr.
///
void ASTStreamer_PrintStats(ASTStreamerTy *Streamer);
/// ASTStreamer_Terminate - Gracefully shut down the streamer.
///
void ASTStreamer_Terminate(ASTStreamerTy *Streamer);
} // end namespace clang
#endif