diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-04 19:20:19 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-08 19:02:26 +0000 |
commit | 81ad626541db97eb356e2c1d4a20eb2a26a766ab (patch) | |
tree | 311b6a8987c32b1e1dcbab65c54cfac3fdb56175 /contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp | |
parent | 5fff09660e06a66bed6482da9c70df328e16bbb6 (diff) | |
parent | 145449b1e420787bb99721a429341fa6be3adfb6 (diff) |
Diffstat (limited to 'contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp')
-rw-r--r-- | contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp b/contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp index fb61a6100b0e..8152a57644fa 100644 --- a/contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp +++ b/contrib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp @@ -14,8 +14,8 @@ #include "lldb/Symbol/LineEntry.h" #include "lldb/Symbol/SymbolContext.h" #include "lldb/Utility/ConstString.h" +#include "lldb/Utility/LLDBLog.h" #include "lldb/Utility/Log.h" -#include "lldb/Utility/Logging.h" #include "lldb/Utility/Stream.h" #include "lldb/Utility/StreamString.h" #include "lldb/lldb-enumerations.h" @@ -40,7 +40,7 @@ AddressResolverFileLine::SearchCallback(SearchFilter &filter, SymbolContextList sc_list; CompileUnit *cu = context.comp_unit; - Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_BREAKPOINTS)); + Log *log = GetLog(LLDBLog::Breakpoints); // TODO: Handle SourceLocationSpec column information cu->ResolveSymbolContext(m_src_location_spec, eSymbolContextEverything, @@ -61,7 +61,7 @@ AddressResolverFileLine::SearchCallback(SearchFilter &filter, line_start.GetFileAddress(), m_src_location_spec.GetFileSpec().GetFilename().AsCString( "<Unknown>"), - m_src_location_spec.GetLine().getValueOr(0)); + m_src_location_spec.GetLine().value_or(0)); } } } @@ -76,5 +76,5 @@ void AddressResolverFileLine::GetDescription(Stream *s) { s->Printf( "File and line address - file: \"%s\" line: %u", m_src_location_spec.GetFileSpec().GetFilename().AsCString("<Unknown>"), - m_src_location_spec.GetLine().getValueOr(0)); + m_src_location_spec.GetLine().value_or(0)); } |