Disabling hole filling in the SDB.

This was required when the AOT CPU was built, but isn't needed now.
This commit is contained in:
Ben Vanik 2013-10-14 00:39:13 -07:00
parent 602ed5393e
commit 76ca76bb67
1 changed files with 9 additions and 8 deletions

View File

@ -632,15 +632,16 @@ bool SymbolDatabase::FillHoles() {
} }
} }
// TODO(benvanik): re-evaluate if this is worth it.
bool any_functions_added = false; bool any_functions_added = false;
for (std::vector<HoleInfo>::iterator it = holes.begin(); it != holes.end(); //for (std::vector<HoleInfo>::iterator it = holes.begin(); it != holes.end();
++it) { // ++it) {
FunctionSymbol* fn = GetOrInsertFunction(it->start_address); // FunctionSymbol* fn = GetOrInsertFunction(it->start_address);
if (!fn->end_address) { // if (!fn->end_address) {
fn->end_address = it->end_address; // fn->end_address = it->end_address;
any_functions_added = true; // any_functions_added = true;
} // }
} //}
return any_functions_added; return any_functions_added;
} }