summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCompileUnit.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-03-06 02:32:45 +0000
committerJason Molenda <jmolenda@apple.com>2019-03-06 02:32:45 +0000
commitb459f182e83e181c11b4d9368ff1f3d004326906 (patch)
tree79f516c6d47ac1264ed9180c1bfd6a523a2e129c /lldb/source/API/SBCompileUnit.cpp
parent3c20b34d24ceba2d0cf69e951c64ba9c22a6dba2 (diff)
downloadbcm5719-llvm-b459f182e83e181c11b4d9368ff1f3d004326906.tar.gz
bcm5719-llvm-b459f182e83e181c11b4d9368ff1f3d004326906.zip
Re-commit logging for SBCompileUnit::GetNumLineEntries.
llvm-svn: 355473
Diffstat (limited to 'lldb/source/API/SBCompileUnit.cpp')
-rw-r--r--lldb/source/API/SBCompileUnit.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp
index d3e828c2ecc..b8afeff3904 100644
--- a/lldb/source/API/SBCompileUnit.cpp
+++ b/lldb/source/API/SBCompileUnit.cpp
@@ -57,10 +57,16 @@ SBFileSpec SBCompileUnit::GetFileSpec() const {
uint32_t SBCompileUnit::GetNumLineEntries() const {
LLDB_RECORD_METHOD_CONST_NO_ARGS(uint32_t, SBCompileUnit, GetNumLineEntries);
+ Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_API));
if (m_opaque_ptr) {
LineTable *line_table = m_opaque_ptr->GetLineTable();
- if (line_table)
+ if (line_table) {
+ if (log)
+ log->Printf("SBCompileUnit(%p)::GetNumLineEntries() => %d",
+ static_cast<void *>(m_opaque_ptr),
+ (int)line_table->GetSize());
return line_table->GetSize();
+ }
}
return 0;
}
OpenPOWER on IntegriCloud