[Lldb-commits] [lldb] r283607 - Fix a few warnings caught by clang.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 7 14:32:17 PDT 2016
Author: zturner
Date: Fri Oct 7 16:32:16 2016
New Revision: 283607
URL: http://llvm.org/viewvc/llvm-project?rev=283607&view=rev
Log:
Fix a few warnings caught by clang.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/trunk/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp?rev=283607&r1=283606&r2=283607&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp Fri Oct 7 16:32:16 2016
@@ -4081,7 +4081,7 @@ bool DWARFASTParserClang::CopyUniqueClas
if (log)
log->Printf("warning: need to create artificial method for 0x%8.8x for "
"method '%s'",
- dst_die.GetOffset(), dst_name_artificial);
+ dst_die.GetOffset(), dst_name_artificial.str().c_str());
failures.Append(dst_die);
}
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp?rev=283607&r1=283606&r2=283607&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp Fri Oct 7 16:32:16 2016
@@ -58,7 +58,7 @@ void NameToDIE::Dump(Stream *s) {
llvm::StringRef cstr = m_map.GetCStringAtIndex(i);
const DIERef &die_ref = m_map.GetValueAtIndexUnchecked(i);
s->Printf("%p: {0x%8.8x/0x%8.8x} \"%s\"\n", (const void *)cstr.data(),
- die_ref.cu_offset, die_ref.die_offset, cstr);
+ die_ref.cu_offset, die_ref.die_offset, cstr.str().c_str());
}
}
More information about the lldb-commits
mailing list