ir_emitter: Make immediate member functions const qualified

These don't modify class state
This commit is contained in:
Lioncash 2018-04-02 13:58:35 -04:00 committed by MerryMage
parent 701f43d61e
commit 7780af56e3
2 changed files with 10 additions and 10 deletions

View file

@ -10,23 +10,23 @@
namespace Dynarmic::IR {
U1 IREmitter::Imm1(bool imm1) {
U1 IREmitter::Imm1(bool imm1) const {
return U1(Value(imm1));
}
U8 IREmitter::Imm8(u8 imm8) {
U8 IREmitter::Imm8(u8 imm8) const {
return U8(Value(imm8));
}
U16 IREmitter::Imm16(u16 imm16) {
U16 IREmitter::Imm16(u16 imm16) const {
return U16(Value(imm16));
}
U32 IREmitter::Imm32(u32 imm32) {
U32 IREmitter::Imm32(u32 imm32) const {
return U32(Value(imm32));
}
U64 IREmitter::Imm64(u64 imm64) {
U64 IREmitter::Imm64(u64 imm64) const {
return U64(Value(imm64));
}

View file

@ -59,11 +59,11 @@ public:
Block& block;
U1 Imm1(bool value);
U8 Imm8(u8 value);
U16 Imm16(u16 value);
U32 Imm32(u32 value);
U64 Imm64(u64 value);
U1 Imm1(bool value) const;
U8 Imm8(u8 value) const;
U16 Imm16(u16 value) const;
U32 Imm32(u32 value) const;
U64 Imm64(u64 value) const;
void PushRSB(const LocationDescriptor& return_location);