Fix a few warnings caught by clang.
authorZachary Turner <zturner@google.com>
Fri, 7 Oct 2016 21:32:16 +0000 (21:32 +0000)
committerZachary Turner <zturner@google.com>
Fri, 7 Oct 2016 21:32:16 +0000 (21:32 +0000)
llvm-svn: 283607

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp

index 77da93a..44ff9cc 100644 (file)
@@ -4081,7 +4081,7 @@ bool DWARFASTParserClang::CopyUniqueClassMethodTypes(
       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);
     }
index 61ccebd..c3d90d1 100644 (file)
@@ -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());
   }
 }