Skip to content
Snippets Groups Projects
Commit 9b66f136 authored by clc5q's avatar clc5q
Browse files

Infer types for non-leaf functions also.

parent e16abfe2
No related branches found
No related tags found
No related merge requests found
...@@ -301,11 +301,11 @@ void SMPProgram::Analyze(void) { ...@@ -301,11 +301,11 @@ void SMPProgram::Analyze(void) {
pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc); pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc);
this->FuncMap.insert(TempFunc); this->FuncMap.insert(TempFunc);
CurrFunc->Analyze(); CurrFunc->Analyze();
if (0 == strcmp("call_gmon_start", CurrFunc->GetFuncName())) { if (0 == strcmp("weightadj", CurrFunc->GetFuncName())) {
DebugFlag = true; DebugFlag = true;
} }
#if SMP_INFER_TYPES #if SMP_INFER_TYPES
if (CurrFunc->IsLeaf() && CurrFunc->HasGoodRTLs() && !CurrFunc->HasIndirectJumps()) { if (CurrFunc->HasGoodRTLs() && !CurrFunc->HasIndirectJumps()) {
#if SMP_DEBUG_OPTIMIZATIONS #if SMP_DEBUG_OPTIMIZATIONS
msg("Inferring types for function %s\n", CurrFunc->GetFuncName()); msg("Inferring types for function %s\n", CurrFunc->GetFuncName());
#endif #endif
......
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