[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)
Shoaib Meenai via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 28 14:58:05 PDT 2024
================
@@ -37,14 +40,39 @@ class CIRGenConsumer : public clang::ASTConsumer {
const LangOptions &LangOptions,
const FrontendOptions &FEOptions,
std::unique_ptr<raw_pwrite_stream> OS)
- : OutputStream(std::move(OS)), FS(VFS),
+ : Action(Action), OutputStream(std::move(OS)), FS(VFS),
Gen(std::make_unique<CIRGenerator>(DiagnosticsEngine, std::move(VFS),
CodeGenOptions)) {}
+ void Initialize(ASTContext &Ctx) override {
+ assert(!Context && "initialized multiple times");
+
+ Context = &Ctx;
+
----------------
smeenai wrote:
The newlines seem superfluous, unless there's more to be filled in here later.
https://github.com/llvm/llvm-project/pull/113483
More information about the cfe-commits
mailing list