aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-10-19 11:58:09 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-10-19 13:13:31 -0700
commitf9632cee30b788df7a6241d7802224d8f633973a (patch)
treee926b472bb382ed7b5506452dbe01a16a79f5994 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent51094545e28d222dc11eea513904506624d715c6 (diff)
downloadllvm-f9632cee30b788df7a6241d7802224d8f633973a.zip
llvm-f9632cee30b788df7a6241d7802224d8f633973a.tar.gz
llvm-f9632cee30b788df7a6241d7802224d8f633973a.tar.bz2
[lldb] Remove FileSpecList::GetFileSpecPointerAtIndex (NFC)
There's only one use and it eventually converts the pointer into a reference. Simplify things and always use references.
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 327dae4..18cbb95 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -603,8 +603,8 @@ protected:
// will track the load location of the library.
size_t num_modules_specified = m_options.m_modules.GetSize();
if (num_modules_specified == 1) {
- const FileSpec *file_spec =
- m_options.m_modules.GetFileSpecPointerAtIndex(0);
+ const FileSpec &file_spec =
+ m_options.m_modules.GetFileSpecAtIndex(0);
bp_sp = target.CreateAddressInModuleBreakpoint(
m_options.m_load_addr, internal, file_spec, m_options.m_hardware);
} else if (num_modules_specified == 0) {