-rw-r--r-- | jitplus/jit-plus-function.cpp | 17 |
diff --git a/jitplus/jit-plus-function.cpp b/jitplus/jit-plus-function.cpp index cb97e3d..d8116f1 100644 --- a/jitplus/jit-plus-function.cpp +++ b/jitplus/jit-plus-function.cpp @@ -42,15 +42,6 @@ for more information on creating and managing instructions. #define JITPP_MAPPING 20000 -class jit_build_exception -{ -public: - jit_build_exception(int result) { this->result = result; } - ~jit_build_exception() {} - - int result; -}; - jit_type_t const jit_function::end_params = (jit_type_t)0; /*@ @@ -1081,6 +1072,14 @@ void jit_function::insn_branch_if_not(const jit_value& value, jit_label& label) } } +void jit_function::insn_jump_table(const jit_value& value, jit_jump_table& jump_table) +{ + if(!jit_insn_jump_table(func, value.raw(), jump_table.raw(), jump_table.size())) + { + out_of_memory(); + } +} + jit_value jit_function::insn_address_of(const jit_value& value1) { value_wrap(jit_insn_address_of(func, value1.raw())); |