mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19:05 +02:00
Don't recompute number of lines of a function every time
This commit is contained in:
1 parent
9a29e8b0bf
commit
945dc48ea7
1 file changed
+1
-7
@@ -312,13 +312,7 @@ void DisassemblyFunction::recheck()
|
||||
|
||||
int DisassemblyFunction::getNumLines()
|
||||
{
|
||||
int lines = 0;
|
||||
for (auto it = entries.begin(); it != entries.end(); it++)
|
||||
{
|
||||
lines += it->second->getNumLines();
|
||||
}
|
||||
|
||||
return lines;
|
||||
return lineAddresses.size();
|
||||
}
|
||||
|
||||
int DisassemblyFunction::getLineNum(u32 address, bool findStart)
|
||||
|
||||
Reference in new issue
Block a user