auto &engine = maybeEngine.get();
// Invoke the JIT-compiled function.
- auto invocationResult = engine->invokePacked("main");
+ auto invocationResult = engine->invoke("main");
if (invocationResult) {
llvm::errs() << "JIT invocation failed\n";
return -1;
auto &engine = maybeEngine.get();
// Invoke the JIT-compiled function.
- auto invocationResult = engine->invokePacked("main");
+ auto invocationResult = engine->invoke("main");
if (invocationResult) {
llvm::errs() << "JIT invocation failed\n";
return -1;
+++ /dev/null
-# RUN: toyc-ch6 -emit=jit %s
-
-def main() {
- print([[1, 2], [3, 4]]);
-}
+++ /dev/null
-# RUN: toyc-ch7 -emit=jit %s
-
-def main() {
- print([[1, 2], [3, 4]]);
-}