diff options
Diffstat (limited to 'lldb/source/Core/Disassembler.cpp')
-rw-r--r-- | lldb/source/Core/Disassembler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp index c55ad1c1755..7cac29491c8 100644 --- a/lldb/source/Core/Disassembler.cpp +++ b/lldb/source/Core/Disassembler.cpp @@ -1321,9 +1321,8 @@ void PseudoInstruction::SetOpcode(size_t opcode_size, void *opcode_data) { } } -void PseudoInstruction::SetDescription(const char *description) { - if (description && strlen(description) > 0) - m_description = description; +void PseudoInstruction::SetDescription(llvm::StringRef description) { + m_description = description; } Instruction::Operand Instruction::Operand::BuildRegister(ConstString &r) { |