From 9b66f1364dec4b6a608f14462398a081fa430597 Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Sun, 20 Apr 2008 16:46:16 +0000
Subject: [PATCH] Infer types for non-leaf functions also.

---
 SMPProgram.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SMPProgram.cpp b/SMPProgram.cpp
index 5063544f..e370f1d2 100644
--- a/SMPProgram.cpp
+++ b/SMPProgram.cpp
@@ -301,11 +301,11 @@ void SMPProgram::Analyze(void) {
 				pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc);
 				this->FuncMap.insert(TempFunc);
 				CurrFunc->Analyze();
-				if (0 == strcmp("call_gmon_start", CurrFunc->GetFuncName())) {
+				if (0 == strcmp("weightadj", CurrFunc->GetFuncName())) {
 					DebugFlag = true;
 				}
 #if SMP_INFER_TYPES
-				if (CurrFunc->IsLeaf() && CurrFunc->HasGoodRTLs() && !CurrFunc->HasIndirectJumps()) {
+				if (CurrFunc->HasGoodRTLs() && !CurrFunc->HasIndirectJumps()) {
 #if SMP_DEBUG_OPTIMIZATIONS
 					msg("Inferring types for function %s\n", CurrFunc->GetFuncName());
 #endif
-- 
GitLab