Core: in CX86Ops::CX86Ops set setLogger to nullptr if not logging

This commit is contained in:
zilmar 2024-10-03 16:22:42 +09:30
parent 9e53b161a4
commit 30090e5db7
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ CX86Ops::CX86Ops(CCodeBlock & CodeBlock) :
asmjit::x86::Assembler(&CodeBlock.CodeHolder()),
m_CodeBlock(CodeBlock)
{
setLogger(this);
setLogger(CDebugSettings::bRecordRecompilerAsm() ? this : nullptr);
setErrorHandler(&CodeBlock);
addFlags(asmjit::FormatFlags::kHexOffsets);
addFlags(asmjit::FormatFlags::kHexImms);