From e39e3851182c3b3680d2db55a0e0956739249864 Mon Sep 17 00:00:00 2001 From: Emil Lenngren Date: Mon, 18 Jun 2012 19:34:32 +0000 Subject: [PATCH] [GB.JIT] * BUG: Fix LLVM Global Variable Mappings git-svn-id: svn://localhost/gambas/trunk@4847 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.jit/src/jit.h | 4 ++-- gb.jit/src/jit_codegen.cpp | 2 +- gb.jit/src/jit_read.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gb.jit/src/jit.h b/gb.jit/src/jit.h index cd45afb7b..2152e5ddf 100644 --- a/gb.jit/src/jit.h +++ b/gb.jit/src/jit.h @@ -874,9 +874,9 @@ struct NopExpression : Expression { memcpy(buf, str, len+1); } - /*NopExpression(){ + NopExpression(){ buf = "..."; - }*/ + } void codegen(); ~NopExpression(){ diff --git a/gb.jit/src/jit_codegen.cpp b/gb.jit/src/jit_codegen.cpp index a263459e4..911040edb 100644 --- a/gb.jit/src/jit_codegen.cpp +++ b/gb.jit/src/jit_codegen.cpp @@ -65,7 +65,7 @@ const size_t TYPE_sizeof_memory_tab[16] = { 0, 1, 1, 2, 4, 8, 4, 8, 8, sizeof(vo ///DEBUG void print_type(llvm::Value* v); -static std::set mappings; +static std::set mappings; //static std::map variable_mappings; static llvm::LLVMContext llvm_context; diff --git a/gb.jit/src/jit_read.cpp b/gb.jit/src/jit_read.cpp index aa9ee38ad..aae08e913 100644 --- a/gb.jit/src/jit_read.cpp +++ b/gb.jit/src/jit_read.cpp @@ -919,7 +919,7 @@ static void JIT_read_statement(){ } case C_BREAK: //PC = code+pos; - push_statement(new NopExpression(JIF.F_DEBUG_get_current_position())); + push_statement(new NopExpression(/*JIF.F_DEBUG_get_current_position()*/)); //PC = code; //push_statement(new NopExpression()); NEXT