diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 2e8d1afbc2f1..e4599344faa6 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -23,6 +23,7 @@ //===----------------------------------------------------------------------===// #include "clang.h" +#include "clang/Sema/ASTStreamer.h" #include "clang/AST/AST.h" #include "clang/Parse/Parser.h" #include "clang/Lex/HeaderSearch.h" diff --git a/clang/Sema/ASTStreamer.cpp b/clang/Sema/ASTStreamer.cpp index 25319ea2a18e..4ff2ba9af5f8 100644 --- a/clang/Sema/ASTStreamer.cpp +++ b/clang/Sema/ASTStreamer.cpp @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "clang/AST/ASTStreamer.h" +#include "clang/Sema/ASTStreamer.h" #include "clang/AST/ASTContext.h" #include "Sema.h" #include "clang/Parse/Action.h" diff --git a/clang/clang.xcodeproj/project.pbxproj b/clang/clang.xcodeproj/project.pbxproj index f35a0bd6c688..850cc210b19e 100644 --- a/clang/clang.xcodeproj/project.pbxproj +++ b/clang/clang.xcodeproj/project.pbxproj @@ -51,13 +51,13 @@ DE67E7150C020EDF00F66BC5 /* Sema.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DE67E7140C020EDF00F66BC5 /* Sema.h */; }; DE67E7170C020EE400F66BC5 /* Sema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DE67E7160C020EE400F66BC5 /* Sema.cpp */; }; DE67E71A0C020F4F00F66BC5 /* ASTStreamer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DE67E7190C020F4F00F66BC5 /* ASTStreamer.cpp */; }; + DE67E7280C02109800F66BC5 /* ASTStreamer.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DE67E7270C02109800F66BC5 /* ASTStreamer.h */; }; DE75ED290B044DC90020CF81 /* ASTContext.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DE75ED280B044DC90020CF81 /* ASTContext.h */; }; DE75EDF10B06880E0020CF81 /* Type.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DE75EDF00B06880E0020CF81 /* Type.cpp */; }; DEAEE98B0A5A2B970045101B /* MultipleIncludeOpt.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DEAEE98A0A5A2B970045101B /* MultipleIncludeOpt.h */; }; DEAEED4B0A5AF89A0045101B /* NOTES.txt in CopyFiles */ = {isa = PBXBuildFile; fileRef = DEAEED4A0A5AF89A0045101B /* NOTES.txt */; }; DEC8D9910A9433CD00353FCA /* Decl.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DEC8D9900A9433CD00353FCA /* Decl.h */; }; DEC8D9A40A94346E00353FCA /* AST.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DEC8D9A30A94346E00353FCA /* AST.h */; }; - DEC8DAC00A94402500353FCA /* ASTStreamer.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DEC8DABF0A94402500353FCA /* ASTStreamer.h */; }; DED626C90AE0C065001E80A4 /* TargetInfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DED626C80AE0C065001E80A4 /* TargetInfo.cpp */; }; DED627030AE0C51D001E80A4 /* Targets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DED627020AE0C51D001E80A4 /* Targets.cpp */; }; DED62ABB0AE2EDF1001E80A4 /* Decl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DED62ABA0AE2EDF1001E80A4 /* Decl.cpp */; }; @@ -126,7 +126,6 @@ DE06E8140A8FF9330050E87E /* Action.h in CopyFiles */, DEC8D9910A9433CD00353FCA /* Decl.h in CopyFiles */, DEC8D9A40A94346E00353FCA /* AST.h in CopyFiles */, - DEC8DAC00A94402500353FCA /* ASTStreamer.h in CopyFiles */, DE0FCA630A95859D00248FD5 /* Expr.h in CopyFiles */, DE5932D20AD60FF400BC794C /* clang.h in CopyFiles */, DE46BF280AE0A82D00CC047C /* TargetInfo.h in CopyFiles */, @@ -146,6 +145,7 @@ 1A30A9E90B93A4C800201A91 /* ExprCXX.h in CopyFiles */, 1A869A700BA2164C008DA07A /* LiteralSupport.h in CopyFiles */, DE67E7150C020EDF00F66BC5 /* Sema.h in CopyFiles */, + DE67E7280C02109800F66BC5 /* ASTStreamer.h in CopyFiles */, ); runOnlyForDeploymentPostprocessing = 1; }; @@ -197,13 +197,13 @@ DE67E7140C020EDF00F66BC5 /* Sema.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = Sema.h; path = Sema/Sema.h; sourceTree = ""; }; DE67E7160C020EE400F66BC5 /* Sema.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Sema.cpp; path = Sema/Sema.cpp; sourceTree = ""; }; DE67E7190C020F4F00F66BC5 /* ASTStreamer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = ASTStreamer.cpp; path = Sema/ASTStreamer.cpp; sourceTree = ""; }; + DE67E7270C02109800F66BC5 /* ASTStreamer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ASTStreamer.h; path = clang/Sema/ASTStreamer.h; sourceTree = ""; }; DE75ED280B044DC90020CF81 /* ASTContext.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ASTContext.h; path = clang/AST/ASTContext.h; sourceTree = ""; }; DE75EDF00B06880E0020CF81 /* Type.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Type.cpp; path = AST/Type.cpp; sourceTree = ""; }; DEAEE98A0A5A2B970045101B /* MultipleIncludeOpt.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MultipleIncludeOpt.h; sourceTree = ""; }; DEAEED4A0A5AF89A0045101B /* NOTES.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = NOTES.txt; sourceTree = ""; }; DEC8D9900A9433CD00353FCA /* Decl.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = Decl.h; path = clang/AST/Decl.h; sourceTree = ""; }; DEC8D9A30A94346E00353FCA /* AST.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = AST.h; path = clang/AST/AST.h; sourceTree = ""; }; - DEC8DABF0A94402500353FCA /* ASTStreamer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ASTStreamer.h; path = clang/AST/ASTStreamer.h; sourceTree = ""; }; DED626C80AE0C065001E80A4 /* TargetInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = TargetInfo.cpp; sourceTree = ""; }; DED627020AE0C51D001E80A4 /* Targets.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Targets.cpp; path = Driver/Targets.cpp; sourceTree = ""; }; DED62ABA0AE2EDF1001E80A4 /* Decl.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Decl.cpp; path = AST/Decl.cpp; sourceTree = ""; usesTabs = 1; }; @@ -334,6 +334,14 @@ name = Sema; sourceTree = ""; }; + DE67E7260C02108300F66BC5 /* Sema */ = { + isa = PBXGroup; + children = ( + DE67E7270C02109800F66BC5 /* ASTStreamer.h */, + ); + name = Sema; + sourceTree = ""; + }; DEAEECAE0A5AF0FA0045101B /* Driver */ = { isa = PBXGroup; children = ( @@ -354,7 +362,6 @@ 1A30A9E80B93A4C800201A91 /* ExprCXX.h */, DEC8D9A30A94346E00353FCA /* AST.h */, DE75ED280B044DC90020CF81 /* ASTContext.h */, - DEC8DABF0A94402500353FCA /* ASTStreamer.h */, DED676D00B6C786700AAD4A3 /* Builtins.def */, DED676F90B6C797B00AAD4A3 /* Builtins.h */, DEC8D9900A9433CD00353FCA /* Decl.h */, @@ -389,6 +396,7 @@ DED7D7390A524295003AD0FB /* Lex */, DE1F21F20A7D84E800FBF588 /* Parse */, DEC8D98B0A9433BC00353FCA /* AST */, + DE67E7260C02108300F66BC5 /* Sema */, ); path = include; sourceTree = ""; diff --git a/clang/include/clang/AST/AST.h b/clang/include/clang/AST/AST.h index bcc92a95ddd2..a185692985c0 100644 --- a/clang/include/clang/AST/AST.h +++ b/clang/include/clang/AST/AST.h @@ -16,7 +16,6 @@ // This header exports all AST interfaces. #include "clang/AST/ASTContext.h" -#include "clang/AST/ASTStreamer.h" #include "clang/AST/Decl.h" #include "clang/AST/Expr.h" #include "clang/AST/Type.h" diff --git a/clang/include/clang/AST/ASTStreamer.h b/clang/include/clang/AST/ASTStreamer.h deleted file mode 100644 index b57593c91b56..000000000000 --- a/clang/include/clang/AST/ASTStreamer.h +++ /dev/null @@ -1,47 +0,0 @@ -//===--- ASTStreamer.h - Stream ASTs for top-level decls --------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by Chris Lattner and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the ASTStreamer interface. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_AST_ASTSTREAMER_H -#define LLVM_CLANG_AST_ASTSTREAMER_H - -namespace llvm { -namespace clang { - class Preprocessor; - class ASTContext; - class Decl; - - /// 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 -} // end namespace llvm - -#endif