Remove boilerplate code (jump* methods in Compiler)

This commit is contained in:
Joshua Warner
2013-12-18 14:38:05 -07:00
parent fd5bd9d77e
commit b66a8549fd
5 changed files with 53 additions and 225 deletions

View File

@ -108,6 +108,10 @@ inline bool isFloatBranch(lir::TernaryOperation op) {
return op > JumpIfNotEqual;
}
inline bool isGeneralBranch(lir::TernaryOperation op) {
return isBranch(op) && !isFloatBranch(op);
}
class Operand { };
class Constant: public Operand {