2525using namespace clang ;
2626using namespace clang ::CIRGen;
2727
28- CIRGenModule::CIRGenModule (mlir::MLIRContext &mlirContext ,
29- clang::ASTContext &astContext ,
28+ CIRGenModule::CIRGenModule (mlir::MLIRContext &context ,
29+ clang::ASTContext &astctx ,
3030 const clang::CodeGenOptions &cgo,
3131 DiagnosticsEngine &diags)
32- : builder(mlirContext, *this ), astContext(astContext),
33- langOpts(astContext.getLangOpts()),
34- theModule{mlir::ModuleOp::create (mlir::UnknownLoc::get (&mlirContext))},
35- diags (diags), target(astContext.getTargetInfo()), genTypes(*this ) {
32+ : builder(context, *this ), astCtx(astctx), langOpts(astctx.getLangOpts()),
33+ theModule{mlir::ModuleOp::create (mlir::UnknownLoc::get (&context))},
34+ diags (diags), target(astctx.getTargetInfo()), genTypes(*this ) {
3635
3736 // Initialize cached types
3837 SInt8Ty = cir::IntType::get (&getMLIRContext (), 8 , /* isSigned=*/ true );
@@ -49,7 +48,7 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &mlirContext,
4948
5049mlir::Location CIRGenModule::getLoc (SourceLocation cLoc) {
5150 assert (cLoc.isValid () && " expected valid source location" );
52- const SourceManager &sm = astContext .getSourceManager ();
51+ const SourceManager &sm = astCtx .getSourceManager ();
5352 PresumedLoc pLoc = sm.getPresumedLoc (cLoc);
5453 StringRef filename = pLoc.getFilename ();
5554 return mlir::FileLineColLoc::get (builder.getStringAttr (filename),
0 commit comments