diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-08-25 22:35:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-08-25 22:35:51 +0000 |
commit | 9293ba8e26fcba18505b273ecc9b66645133fcce (patch) | |
tree | c432b4226ce3acf8cbc3a3b20580bbcf687f7098 /lib/Frontend/ASTUnit.cpp | |
parent | 467dc88512b4ba4bb16e274ea3771dc1415d31da (diff) |
Remove the Chaining argument from the PCH/module generator. It's no longer used
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
-rw-r--r-- | lib/Frontend/ASTUnit.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index b8d9f2f8c2..e3d56367fd 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -771,10 +771,9 @@ class PrecompilePreambleConsumer : public PCHGenerator, std::vector<Decl *> TopLevelDecls; public: - PrecompilePreambleConsumer(ASTUnit &Unit, - const Preprocessor &PP, bool Chaining, + PrecompilePreambleConsumer(ASTUnit &Unit, const Preprocessor &PP, StringRef isysroot, raw_ostream *Out) - : PCHGenerator(PP, "", Chaining, isysroot, Out), Unit(Unit), + : PCHGenerator(PP, "", isysroot, Out), Unit(Unit), Hash(Unit.getCurrentTopLevelHashValue()) { Hash = 0; } @@ -827,10 +826,9 @@ public: std::string Sysroot; std::string OutputFile; raw_ostream *OS = 0; - bool Chaining; if (GeneratePCHAction::ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, - OS, Chaining)) + OS)) return 0; if (!CI.getFrontendOpts().RelocatablePCH) @@ -838,8 +836,8 @@ public: CI.getPreprocessor().addPPCallbacks( new MacroDefinitionTrackerPPCallbacks(Unit.getCurrentTopLevelHashValue())); - return new PrecompilePreambleConsumer(Unit, CI.getPreprocessor(), Chaining, - Sysroot, OS); + return new PrecompilePreambleConsumer(Unit, CI.getPreprocessor(), Sysroot, + OS); } virtual bool hasCodeCompletionSupport() const { return false; } |