Merge pull request #2786 from lioncash/ref
UICommon: Pass string by const reference for HostDisassemblerLLVM
This commit is contained in:
commit
9bed03fbf1
|
@ -31,7 +31,7 @@ private:
|
||||||
class HostDisassemblerLLVM : public HostDisassembler
|
class HostDisassemblerLLVM : public HostDisassembler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
HostDisassemblerLLVM(const std::string host_disasm, int inst_size = -1, const std::string cpu = "");
|
HostDisassemblerLLVM(const std::string& host_disasm, int inst_size = -1, const std::string& cpu = "");
|
||||||
~HostDisassemblerLLVM()
|
~HostDisassemblerLLVM()
|
||||||
{
|
{
|
||||||
if (m_can_disasm)
|
if (m_can_disasm)
|
||||||
|
@ -46,7 +46,7 @@ private:
|
||||||
std::string DisassembleHostBlock(const u8* code_start, const u32 code_size, u32* host_instructions_count) override;
|
std::string DisassembleHostBlock(const u8* code_start, const u32 code_size, u32* host_instructions_count) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
HostDisassemblerLLVM::HostDisassemblerLLVM(const std::string host_disasm, int inst_size, const std::string cpu)
|
HostDisassemblerLLVM::HostDisassemblerLLVM(const std::string& host_disasm, int inst_size, const std::string& cpu)
|
||||||
: m_can_disasm(false), m_instruction_size(inst_size)
|
: m_can_disasm(false), m_instruction_size(inst_size)
|
||||||
{
|
{
|
||||||
LLVMInitializeAllTargetInfos();
|
LLVMInitializeAllTargetInfos();
|
||||||
|
|
Loading…
Reference in New Issue