mirror of
https://github.com/corda/corda.git
synced 2025-06-19 23:53:52 +00:00
Remove boilerplate code (jump* methods in Compiler)
This commit is contained in:
@ -67,6 +67,13 @@ class Value: public Compiler::Operand {
|
||||
|
||||
};
|
||||
|
||||
inline bool isGeneralValue(Compiler::Operand* a) {
|
||||
return static_cast<Value*>(a)->type == lir::ValueGeneral;
|
||||
}
|
||||
|
||||
inline bool isFloatValue(Compiler::Operand* a) {
|
||||
return static_cast<Value*>(a)->type == lir::ValueFloat;
|
||||
}
|
||||
|
||||
Value* value(Context* c, lir::ValueType type, Site* site = 0, Site* target = 0);
|
||||
|
||||
|
Reference in New Issue
Block a user