ir_emitter: Make immediate member functions const qualified
These don't modify class state
This commit is contained in:
parent
701f43d61e
commit
7780af56e3
2 changed files with 10 additions and 10 deletions
|
@ -10,23 +10,23 @@
|
||||||
|
|
||||||
namespace Dynarmic::IR {
|
namespace Dynarmic::IR {
|
||||||
|
|
||||||
U1 IREmitter::Imm1(bool imm1) {
|
U1 IREmitter::Imm1(bool imm1) const {
|
||||||
return U1(Value(imm1));
|
return U1(Value(imm1));
|
||||||
}
|
}
|
||||||
|
|
||||||
U8 IREmitter::Imm8(u8 imm8) {
|
U8 IREmitter::Imm8(u8 imm8) const {
|
||||||
return U8(Value(imm8));
|
return U8(Value(imm8));
|
||||||
}
|
}
|
||||||
|
|
||||||
U16 IREmitter::Imm16(u16 imm16) {
|
U16 IREmitter::Imm16(u16 imm16) const {
|
||||||
return U16(Value(imm16));
|
return U16(Value(imm16));
|
||||||
}
|
}
|
||||||
|
|
||||||
U32 IREmitter::Imm32(u32 imm32) {
|
U32 IREmitter::Imm32(u32 imm32) const {
|
||||||
return U32(Value(imm32));
|
return U32(Value(imm32));
|
||||||
}
|
}
|
||||||
|
|
||||||
U64 IREmitter::Imm64(u64 imm64) {
|
U64 IREmitter::Imm64(u64 imm64) const {
|
||||||
return U64(Value(imm64));
|
return U64(Value(imm64));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,11 +59,11 @@ public:
|
||||||
|
|
||||||
Block& block;
|
Block& block;
|
||||||
|
|
||||||
U1 Imm1(bool value);
|
U1 Imm1(bool value) const;
|
||||||
U8 Imm8(u8 value);
|
U8 Imm8(u8 value) const;
|
||||||
U16 Imm16(u16 value);
|
U16 Imm16(u16 value) const;
|
||||||
U32 Imm32(u32 value);
|
U32 Imm32(u32 value) const;
|
||||||
U64 Imm64(u64 value);
|
U64 Imm64(u64 value) const;
|
||||||
|
|
||||||
void PushRSB(const LocationDescriptor& return_location);
|
void PushRSB(const LocationDescriptor& return_location);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue