@@ -22,27 +22,27 @@ class CIRGenConsumer : public clang::ASTConsumer {
2222
2323 virtual void anchor ();
2424
25- std::unique_ptr<raw_pwrite_stream> outputStream ;
25+ std::unique_ptr<raw_pwrite_stream> OutputStream ;
2626
2727 IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS;
28- std::unique_ptr<CIRGenerator> gen ;
28+ std::unique_ptr<CIRGenerator> Gen ;
2929
3030public:
31- CIRGenConsumer (CIRGenAction::OutputType action ,
32- DiagnosticsEngine &diagnosticsEngine ,
31+ CIRGenConsumer (CIRGenAction::OutputType Action ,
32+ DiagnosticsEngine &DiagnosticsEngine ,
3333 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
34- const HeaderSearchOptions &headerSearchOptions ,
35- const CodeGenOptions &codeGenOptions ,
36- const TargetOptions &targetOptions ,
37- const LangOptions &langOptions ,
38- const FrontendOptions &feOptions ,
39- std::unique_ptr<raw_pwrite_stream> os )
40- : outputStream (std::move(os )), FS(VFS),
41- gen (std::make_unique<CIRGenerator>(diagnosticsEngine , std::move(VFS),
42- codeGenOptions )) {}
34+ const HeaderSearchOptions &HeaderSearchOptions ,
35+ const CodeGenOptions &CodeGenOptions ,
36+ const TargetOptions &TargetOptions ,
37+ const LangOptions &LangOptions ,
38+ const FrontendOptions &FEOptions ,
39+ std::unique_ptr<raw_pwrite_stream> OS )
40+ : OutputStream (std::move(OS )), FS(VFS),
41+ Gen (std::make_unique<CIRGenerator>(DiagnosticsEngine , std::move(VFS),
42+ CodeGenOptions )) {}
4343
4444 bool HandleTopLevelDecl (DeclGroupRef D) override {
45- gen ->HandleTopLevelDecl (D);
45+ Gen ->HandleTopLevelDecl (D);
4646 return true ;
4747 }
4848};
@@ -57,12 +57,12 @@ CIRGenAction::~CIRGenAction() { MLIRMod.release(); }
5757
5858std::unique_ptr<ASTConsumer>
5959CIRGenAction::CreateASTConsumer (CompilerInstance &CI, StringRef InFile) {
60- std::unique_ptr<llvm::raw_pwrite_stream> out = CI.takeOutputStream ();
60+ std::unique_ptr<llvm::raw_pwrite_stream> Out = CI.takeOutputStream ();
6161
6262 auto Result = std::make_unique<cir::CIRGenConsumer>(
6363 Action, CI.getDiagnostics (), &CI.getVirtualFileSystem (),
6464 CI.getHeaderSearchOpts (), CI.getCodeGenOpts (), CI.getTargetOpts (),
65- CI.getLangOpts (), CI.getFrontendOpts (), std::move (out ));
65+ CI.getLangOpts (), CI.getFrontendOpts (), std::move (Out ));
6666
6767 return Result;
6868}
0 commit comments