Skip to content

Commit 6e6014d

Browse files
committed
more
Created using spr 1.3.5
1 parent 4b14997 commit 6e6014d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

clang/lib/CIR/FrontendAction/CIRGenAction.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3030
public:
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

5858
std::unique_ptr<ASTConsumer>
5959
CIRGenAction::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

Comments
 (0)