diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-28 04:27:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-28 04:27:18 +0000 |
commit | a5adead17bb94f8517cd85f28aad57de785feaa1 (patch) | |
tree | e571e82231ded04af224d354792c264ad0d89d94 /clang/tools/clang-cc/ASTConsumers.cpp | |
parent | 72f307a26e85109dacc68887807734a1b72ad6a7 (diff) | |
download | bcm5719-llvm-a5adead17bb94f8517cd85f28aad57de785feaa1.tar.gz bcm5719-llvm-a5adead17bb94f8517cd85f28aad57de785feaa1.zip |
push more ASTContext goodness out through interfaces that use
TranslationUnit
llvm-svn: 67913
Diffstat (limited to 'clang/tools/clang-cc/ASTConsumers.cpp')
-rw-r--r-- | clang/tools/clang-cc/ASTConsumers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/tools/clang-cc/ASTConsumers.cpp b/clang/tools/clang-cc/ASTConsumers.cpp index 18b4246cb6c..5b4287a2bd1 100644 --- a/clang/tools/clang-cc/ASTConsumers.cpp +++ b/clang/tools/clang-cc/ASTConsumers.cpp @@ -13,18 +13,18 @@ #include "ASTConsumers.h" #include "clang/Frontend/PathDiagnosticClients.h" -#include "clang/AST/TranslationUnit.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/FileManager.h" #include "clang/AST/AST.h" #include "clang/AST/ASTConsumer.h" +#include "clang/AST/ASTContext.h" #include "clang/CodeGen/ModuleBuilder.h" #include "llvm/Module.h" #include "llvm/Support/Streams.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" - +#include "llvm/System/Path.h" using namespace clang; //===----------------------------------------------------------------------===// @@ -981,7 +981,7 @@ public: std::vector<unsigned char> Buffer; Buffer.reserve(256*1024); - EmitASTBitcodeBuffer(Ctx, Buffer); + Ctx.EmitASTBitcodeBuffer(Buffer); // Write the bits to disk. if (FILE* fp = fopen(FName.c_str(),"wb")) { @@ -1032,7 +1032,7 @@ public: std::vector<unsigned char> Buffer; Buffer.reserve(256*1024); - EmitASTBitcodeBuffer(Ctx, Buffer); + Ctx.EmitASTBitcodeBuffer(Buffer); // Write the bits to disk. if (FILE* fp = fopen(FName.c_str(),"wb")) { |