From 4b1aa816bb62e4610bb1c5ea369cbff6f624fcca Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Sep 2007 19:47:56 +0000 Subject: [PATCH] remove some obsolete interfaces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42014 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/ASTStreamer.cpp | 26 -------------------------- include/clang/Sema/ASTStreamer.h | 23 ----------------------- 2 files changed, 49 deletions(-) diff --git a/Sema/ASTStreamer.cpp b/Sema/ASTStreamer.cpp index f96621da2c..9dce95afb3 100644 --- a/Sema/ASTStreamer.cpp +++ b/Sema/ASTStreamer.cpp @@ -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(Streamer)->ReadTopLevelDecl(); -} - - -/// ASTStreamer_PrintStats - Emit statistic information to stderr. -/// -void clang::ASTStreamer_PrintStats(ASTStreamerTy *Streamer) { - return static_cast(Streamer)->PrintStats(); -} - -/// ASTStreamer_Terminate - Gracefully shut down the streamer. -/// -void clang::ASTStreamer_Terminate(ASTStreamerTy *Streamer) { - delete static_cast(Streamer); -} diff --git a/include/clang/Sema/ASTStreamer.h b/include/clang/Sema/ASTStreamer.h index 02c9bba9a5..3130613e7a 100644 --- a/include/clang/Sema/ASTStreamer.h +++ b/include/clang/Sema/ASTStreamer.h @@ -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 -- 2.40.0