frontend/A64/ir_emitter: Mark PC() and AlignPC() as const qualified member functions
These don't actually alter any instance state.
This commit is contained in:
parent
2eaf922f8b
commit
3a2dd09122
2 changed files with 5 additions and 5 deletions
|
@ -12,12 +12,12 @@ namespace Dynarmic::A64 {
|
|||
|
||||
using Opcode = IR::Opcode;
|
||||
|
||||
u64 IREmitter::PC() {
|
||||
u64 IREmitter::PC() const {
|
||||
return current_location->PC();
|
||||
}
|
||||
|
||||
u64 IREmitter::AlignPC(size_t alignment) {
|
||||
u64 pc = PC();
|
||||
u64 IREmitter::AlignPC(size_t alignment) const {
|
||||
const u64 pc = PC();
|
||||
return static_cast<u64>(pc - pc % alignment);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,8 +31,8 @@ public:
|
|||
|
||||
std::optional<LocationDescriptor> current_location;
|
||||
|
||||
u64 PC();
|
||||
u64 AlignPC(size_t alignment);
|
||||
u64 PC() const;
|
||||
u64 AlignPC(size_t alignment) const;
|
||||
|
||||
void SetCheckBit(const IR::U1& value);
|
||||
IR::U1 GetCFlag();
|
||||
|
|
Loading…
Reference in a new issue