mirror of
https://github.com/open-goal/jak-project
synced 2026-05-31 17:32:51 -04:00
fe693b5da2
* type analysis setup * more framework * update printing * wip * add type analysis pass * fix tests
20 lines
573 B
C++
20 lines
573 B
C++
#include <stdexcept>
|
|
#include "Env.h"
|
|
|
|
namespace decompiler {
|
|
std::string Env::get_variable_name(Register reg, int atomic_idx) const {
|
|
(void)reg;
|
|
(void)atomic_idx;
|
|
throw std::runtime_error("Env::get_variable_name not yet implemented.");
|
|
}
|
|
|
|
/*!
|
|
* Update the Env with the result of the type analysis pass.
|
|
*/
|
|
void Env::set_types(const std::vector<TypeState>& block_init_types,
|
|
const std::vector<TypeState>& op_end_types) {
|
|
m_block_init_types = block_init_types;
|
|
m_op_end_types = op_end_types;
|
|
m_has_types = true;
|
|
}
|
|
} // namespace decompiler
|