Skip to content

Commit

Permalink
issue #169 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dibyendu Majumdar committed Dec 26, 2019
1 parent 1e85a5b commit 8c6387f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ravi_mirjit.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void raise_error(lua_State *L, int errorcode) {
}

#if !RAVI_TARGET_X64
#error OMRJIT is currently only supported on X64 architecture
#error MIRJIT is currently only supported on X64 architecture
#endif

typedef struct LuaFunc {
Expand Down Expand Up @@ -180,7 +180,6 @@ int raviV_initjit(struct lua_State *L) {
jit->opt_level_ = 1;
// The parameter true means we will be dumping stuff as we compile
jit->jit = MIR_init();
// TODO create context
G->ravi_state = jit;
return 0;
}
Expand Down Expand Up @@ -461,8 +460,6 @@ int raviV_compile(struct lua_State *L, struct Proto *p, ravi_compile_options_t *
int (*fp)(lua_State * L) = NULL;
char fname[30];
snprintf(fname, sizeof fname, "jit%lld", G->ravi_state->id++);
char *argv[] = { fname, "-O1", NULL };

if (!raviJ_codegen(L, p, options, fname, &buf)) {
p->ravi_jit.jit_status = RAVI_JIT_CANT_COMPILE;
goto Lerror;
Expand Down

0 comments on commit 8c6387f

Please sign in to comment.