[Decompiler] Expressions (Part 3) (#213)

* before inserting bonus instruction

* first part of refactor for return values

* find parent method working
This commit is contained in:
water111
2021-01-25 22:08:58 -05:00
committed by GitHub
parent 2f722e6379
commit b59e33c005
22 changed files with 782 additions and 81 deletions
+2 -1
View File
@@ -16,9 +16,10 @@ class FormStack {
void push_value_to_reg(Variable var, Form* value, bool sequence_point);
void push_form_element(FormElement* elt, bool sequence_point);
Form* pop_reg(const Variable& var);
Form* pop_reg(Register reg);
bool is_single_expression();
std::vector<FormElement*> rewrite(FormPool& pool);
std::vector<FormElement*> rewrite_to_get_reg(FormPool& pool, Register reg, const Env& env);
std::vector<FormElement*> rewrite_to_get_var(FormPool& pool, const Variable& var, const Env& env);
std::string print(const Env& env);
private: