From 2cffda3ff8bb5435e524da975fd43d9cf7d90e59 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 30 Oct 2012 23:34:07 +0000 Subject: [PATCH] Change a couple of raw printf's to expression log output. llvm-svn: 167060 --- .../Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index a8f9bdf21b21..cf7d0ebbb818 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -6127,7 +6127,10 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, if (!object_pointer_name.empty()) { metadata.SetObjectPtrName(object_pointer_name.c_str()); - printf ("Setting object pointer name: %s on method object 0x%ld.\n", object_pointer_name.c_str(), (uintptr_t) cxx_method_decl); + if (log) + log->Printf ("Setting object pointer name: %s on method object 0x%ld.\n", + object_pointer_name.c_str(), + (uintptr_t) cxx_method_decl); } GetClangASTContext().SetMetadata ((uintptr_t)cxx_method_decl, metadata); } @@ -6201,7 +6204,10 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, if (!object_pointer_name.empty()) { metadata.SetObjectPtrName(object_pointer_name.c_str()); - printf ("Setting object pointer name: %s on function object 0x%ld.\n", object_pointer_name.c_str(), (uintptr_t) function_decl); + if (log) + log->Printf ("Setting object pointer name: %s on function object 0x%ld.\n", + object_pointer_name.c_str(), + (uintptr_t) function_decl); } GetClangASTContext().SetMetadata ((uintptr_t)function_decl, metadata); }