finish renaming lir:: types (fixup arm)

This commit is contained in:
joshuawarner32@gmail.com 2014-12-04 18:33:44 -07:00 committed by Joshua Warner
parent 2939480a65
commit 10442dc7d6

View File

@ -25,8 +25,8 @@ unsigned index(ArchitectureContext*,
lir::Operand::Type operand1, lir::Operand::Type operand1,
lir::Operand::Type operand2) lir::Operand::Type operand2)
{ {
return operation + (lir::BinaryOperationCount * operand1) return operation + (lir::BinaryOperationCount * (unsigned)operand1)
+ (lir::BinaryOperationCount * lir::Operand::TypeCount * operand2); + (lir::BinaryOperationCount * lir::Operand::TypeCount * (unsigned)operand2);
} }
unsigned index(ArchitectureContext* con UNUSED, unsigned index(ArchitectureContext* con UNUSED,
@ -35,14 +35,14 @@ unsigned index(ArchitectureContext* con UNUSED,
{ {
assertT(con, not isBranch(operation)); assertT(con, not isBranch(operation));
return operation + (lir::NonBranchTernaryOperationCount * operand1); return operation + (lir::NonBranchTernaryOperationCount * (unsigned)operand1);
} }
unsigned branchIndex(ArchitectureContext* con UNUSED, unsigned branchIndex(ArchitectureContext* con UNUSED,
lir::Operand::Type operand1, lir::Operand::Type operand1,
lir::Operand::Type operand2) lir::Operand::Type operand2)
{ {
return operand1 + (lir::Operand::TypeCount * operand2); return (unsigned)operand1 + (lir::Operand::TypeCount * (unsigned)operand2);
} }
void populateTables(ArchitectureContext* con) void populateTables(ArchitectureContext* con)