[clang] [clang-repl] Honor `-emit-llvm` to print incremental IR (PR #217870)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 21 06:12:15 PDT 2026
================
@@ -361,8 +367,19 @@ int main(int argc, const char **argv) {
bool HasError = false;
+ auto ProcessInput = [&](llvm::StringRef Input) -> llvm::Error {
+ if (!EmitLLVMIR)
+ return Interp->ParseAndExecute(Input);
+ auto PTU = Interp->Parse(Input);
----------------
vgvassilev wrote:
After we parse we do not seem to be calling Execute to register the module in the jit.
https://github.com/llvm/llvm-project/pull/217870
More information about the cfe-commits
mailing list