mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
emit_x64: Make GetBasicBlock() const qualified
This commit is contained in:
parent
6a16edc0fb
commit
fafa845f64
@ -99,7 +99,7 @@ EmitX64::BlockDescriptor EmitX64::Emit(IR::Block& block) {
|
|||||||
return basic_blocks[descriptor];
|
return basic_blocks[descriptor];
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::optional<EmitX64::BlockDescriptor> EmitX64::GetBasicBlock(IR::LocationDescriptor descriptor) {
|
boost::optional<EmitX64::BlockDescriptor> EmitX64::GetBasicBlock(IR::LocationDescriptor descriptor) const {
|
||||||
auto iter = basic_blocks.find(descriptor);
|
auto iter = basic_blocks.find(descriptor);
|
||||||
if (iter == basic_blocks.end())
|
if (iter == basic_blocks.end())
|
||||||
return boost::none;
|
return boost::none;
|
||||||
|
|||||||
@ -47,7 +47,7 @@ public:
|
|||||||
BlockDescriptor Emit(IR::Block& ir);
|
BlockDescriptor Emit(IR::Block& ir);
|
||||||
|
|
||||||
/// Looks up an emitted host block in the cache.
|
/// Looks up an emitted host block in the cache.
|
||||||
boost::optional<BlockDescriptor> GetBasicBlock(IR::LocationDescriptor descriptor);
|
boost::optional<BlockDescriptor> GetBasicBlock(IR::LocationDescriptor descriptor) const;
|
||||||
|
|
||||||
/// Empties the cache.
|
/// Empties the cache.
|
||||||
void ClearCache();
|
void ClearCache();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user