diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 20:34:10 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 20:34:10 +0000 |
commit | 771ef6d4f15452d76387cd66552a38122be60925 (patch) | |
tree | 78449c43ffd29ef2bd0801c9f8bf80fced0ef3e4 /lldb/source/Core/Disassembler.cpp | |
parent | 7463adadbf0ab2742b122a3d4adc8e2041c3ac01 (diff) | |
download | bcm5719-llvm-771ef6d4f15452d76387cd66552a38122be60925.tar.gz bcm5719-llvm-771ef6d4f15452d76387cd66552a38122be60925.zip |
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: zturner, labath
Subscribers: tberghammer, danalbert, lldb-commits
Differential Revision: https://reviews.llvm.org/D26233
llvm-svn: 285855
Diffstat (limited to 'lldb/source/Core/Disassembler.cpp')
-rw-r--r-- | lldb/source/Core/Disassembler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp index 5a320d1cd37..577f2f6d474 100644 --- a/lldb/source/Core/Disassembler.cpp +++ b/lldb/source/Core/Disassembler.cpp @@ -725,15 +725,15 @@ void Instruction::Dump(lldb_private::Stream *s, uint32_t max_opcode_byte_size, opcode_column_width = m_opcode_name.length() + 1; } - ss.PutCString(m_opcode_name.c_str()); + ss.PutCString(m_opcode_name); ss.FillLastLineToColumn(opcode_pos + opcode_column_width, ' '); - ss.PutCString(m_mnemonics.c_str()); + ss.PutCString(m_mnemonics); if (!m_comment.empty()) { ss.FillLastLineToColumn( opcode_pos + opcode_column_width + operand_column_width, ' '); ss.PutCString(" ; "); - ss.PutCString(m_comment.c_str()); + ss.PutCString(m_comment); } s->Write(ss.GetData(), ss.GetSize()); } |