[cfe-commits] r42014 - in /cfe/trunk: Sema/ASTStreamer.cpp include/clang/Sema/ASTStreamer.h

Chris Lattner sabre at nondot.org
Sun Sep 16 12:47:56 PDT 2007


Author: lattner
Date: Sun Sep 16 14:47:56 2007
New Revision: 42014

URL: http://llvm.org/viewvc/llvm-project?rev=42014&view=rev
Log:
remove some obsolete interfaces.

Modified:
    cfe/trunk/Sema/ASTStreamer.cpp
    cfe/trunk/include/clang/Sema/ASTStreamer.h

Modified: cfe/trunk/Sema/ASTStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/ASTStreamer.cpp?rev=42014&r1=42013&r2=42014&view=diff

==============================================================================
--- cfe/trunk/Sema/ASTStreamer.cpp (original)
+++ cfe/trunk/Sema/ASTStreamer.cpp Sun Sep 16 14:47:56 2007
@@ -119,29 +119,3 @@
     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);
-}

Modified: cfe/trunk/include/clang/Sema/ASTStreamer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ASTStreamer.h?rev=42014&r1=42013&r2=42014&view=diff

==============================================================================
--- cfe/trunk/include/clang/Sema/ASTStreamer.h (original)
+++ cfe/trunk/include/clang/Sema/ASTStreamer.h Sun Sep 16 14:47:56 2007
@@ -24,29 +24,6 @@
   /// 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





More information about the cfe-commits mailing list