Fixing spurious function declarations.
This commit is contained in:
parent
573f190a43
commit
1a2b4a38e0
|
@ -34,11 +34,14 @@ PPCScanner::PPCScanner(PPCFrontend* frontend) : frontend_(frontend) {}
|
||||||
PPCScanner::~PPCScanner() {}
|
PPCScanner::~PPCScanner() {}
|
||||||
|
|
||||||
bool PPCScanner::IsRestGprLr(uint32_t address) {
|
bool PPCScanner::IsRestGprLr(uint32_t address) {
|
||||||
FunctionInfo* symbol_info;
|
auto functions = frontend_->processor()->FindFunctionsWithAddress(address);
|
||||||
if (!frontend_->processor()->LookupFunctionInfo(address, &symbol_info)) {
|
for (auto& function : functions) {
|
||||||
return false;
|
if (function->symbol_info()->behavior() ==
|
||||||
|
FunctionBehavior::kEpilogReturn) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return symbol_info->behavior() == FunctionBehavior::kEpilogReturn;
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PPCScanner::Scan(FunctionInfo* symbol_info, DebugInfo* debug_info) {
|
bool PPCScanner::Scan(FunctionInfo* symbol_info, DebugInfo* debug_info) {
|
||||||
|
|
Loading…
Reference in New Issue