@@ -188,18 +188,16 @@ namespace {
188
188
};
189
189
190
190
class ParsingAction : public clang ::ASTFrontendAction {
191
- ASTContext &Ctx;
192
191
ClangImporter &Importer;
193
192
ClangImporter::Implementation &Impl;
194
193
const ClangImporterOptions &ImporterOpts;
195
194
std::string SwiftPCHHash;
196
195
public:
197
- explicit ParsingAction (ASTContext &ctx,
198
- ClangImporter &importer,
196
+ explicit ParsingAction (ClangImporter &importer,
199
197
ClangImporter::Implementation &impl,
200
198
const ClangImporterOptions &importerOpts,
201
199
std::string swiftPCHHash)
202
- : Ctx(ctx), Importer(importer), Impl(impl), ImporterOpts(importerOpts),
200
+ : Importer(importer), Impl(impl), ImporterOpts(importerOpts),
203
201
SwiftPCHHash(swiftPCHHash) {}
204
202
std::unique_ptr<clang::ASTConsumer>
205
203
CreateASTConsumer (clang::CompilerInstance &CI, StringRef InFile) override {
@@ -1477,7 +1475,7 @@ ClangImporter::create(ASTContext &ctx,
1477
1475
}
1478
1476
1479
1477
// Create the associated action.
1480
- importer->Impl .Action .reset (new ParsingAction (ctx, *importer,
1478
+ importer->Impl .Action .reset (new ParsingAction (*importer,
1481
1479
importer->Impl ,
1482
1480
importerOpts,
1483
1481
swiftPCHHash));
0 commit comments