Make Instruction::getBlock() const.

This commit is contained in:
Dejan Mircevski 2016-01-19 11:31:55 -05:00
parent 377f0cab26
commit fa242904b0

View File

@ -110,7 +110,7 @@ public:
}
}
void setBlock(Block* b) { block = b; }
Block* getBlock() { return block; }
Block* getBlock() const { return block; }
Op getOpCode() const { return opCode; }
int getNumOperands() const { return (int)operands.size(); }
Id getResultId() const { return resultId; }