bool-ifying xe::cpu

This commit is contained in:
Ben Vanik
2015-05-05 17:21:08 -07:00
parent a38b05db24
commit ade5388728
67 changed files with 270 additions and 347 deletions

View File

@@ -175,7 +175,7 @@ void Module::ForEachFunction(size_t since, size_t& version,
}
}
int Module::ReadMap(const char* file_name) {
bool Module::ReadMap(const char* file_name) {
std::ifstream infile(file_name);
// Skip until ' Address'. Skip the next blank line.
@@ -225,7 +225,7 @@ int Module::ReadMap(const char* file_name) {
if (type_str == "f") {
// Function.
FunctionInfo* fn_info;
if (processor_->LookupFunctionInfo(this, address, &fn_info)) {
if (!processor_->LookupFunctionInfo(this, address, &fn_info)) {
continue;
}
// Don't overwrite names we've set elsewhere.
@@ -243,7 +243,7 @@ int Module::ReadMap(const char* file_name) {
}
}
return 0;
return true;
}
} // namespace cpu