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

@@ -51,7 +51,7 @@ void HIRBuilder::Reset() {
arena_->Reset();
}
int HIRBuilder::Finalize() {
bool HIRBuilder::Finalize() {
// Scan blocks in order and add fallthrough branches. These are needed for
// analysis passes to work. We may have also added blocks out of order and
// need to ensure they fall through in the right order.
@@ -84,7 +84,7 @@ int HIRBuilder::Finalize() {
current_block_ = NULL;
}
}
return 0;
return true;
}
void HIRBuilder::DumpValue(StringBuffer* str, Value* value) {

View File

@@ -34,7 +34,7 @@ class HIRBuilder {
virtual ~HIRBuilder();
virtual void Reset();
virtual int Finalize();
virtual bool Finalize();
void Dump(StringBuffer* str);
void AssertNoCycles();