[Lldb-commits] [lldb] r167060 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Jim Ingham
jingham at apple.com
Tue Oct 30 16:34:07 PDT 2012
Author: jingham
Date: Tue Oct 30 18:34:07 2012
New Revision: 167060
URL: http://llvm.org/viewvc/llvm-project?rev=167060&view=rev
Log:
Change a couple of raw printf's to expression log output.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=167060&r1=167059&r2=167060&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue Oct 30 18:34:07 2012
@@ -6127,7 +6127,10 @@
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 @@
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);
}
More information about the lldb-commits
mailing list