Skip to content
Snippets Groups Projects
Commit f333a639 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Get rid of leaf annotation code in laf

parent ea05813d
No related branches found
No related tags found
No related merge requests found
Pipeline #2724 passed
......@@ -44,7 +44,6 @@ Laf_t::Laf_t(pqxxDB_t &p_dbinterface, FileIR_t *p_variantIR, bool p_verbose)
m_trace_div = true;
auto deep_analysis=DeepAnalysis_t::factory(getFileIR());
leaf_functions = deep_analysis->getLeafFunctions();
dead_registers = deep_analysis->getDeadRegisters();
m_blacklist.insert(".init");
......@@ -139,12 +138,6 @@ bool Laf_t::getTraceDiv() const
return m_trace_div;
}
bool Laf_t::hasLeafAnnotation(Function_t* p_fn) const
{
auto it = leaf_functions -> find(p_fn);
return (it != leaf_functions->end());
}
bool Laf_t::getFreeRegister(Instruction_t* p_instr, string& p_freereg, RegisterSet_t p_allowed_regs)
{
const auto dp = DecodedInstruction_t::factory(p_instr);
......
......@@ -33,13 +33,11 @@ namespace Laf
int doTraceCompare();
int doTraceDiv();
bool isBlacklisted(Function_t*) const;
bool hasLeafAnnotation(Function_t* fn) const;
bool getFreeRegister(Instruction_t* p_instr, std::string& p_freereg, RegisterSet_t);
bool traceBytesNested(Instruction_t *p_instr, int64_t p_immediate);
private:
pqxxDB_t &m_dbinterface;
std::unique_ptr<FunctionSet_t> leaf_functions;
std::unique_ptr<DeadRegisterMap_t> dead_registers;
bool m_verbose;
bool m_trace_compare;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment