diff options
author | jimingham <jingham@apple.com> | 2025-07-28 15:11:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-28 15:11:22 -0700 |
commit | 4c8e79f81582a757ed4333f8ff2ad4da18bab39a (patch) | |
tree | 80f46311f5b7d23c6b06f88f4269b41be7fd520e /lldb/source/Interpreter/ScriptInterpreter.cpp | |
parent | 6bcff9eb13f226b89bb6ebc80bb0f3e80b7868f7 (diff) | |
download | llvm-4c8e79f81582a757ed4333f8ff2ad4da18bab39a.zip llvm-4c8e79f81582a757ed4333f8ff2ad4da18bab39a.tar.gz llvm-4c8e79f81582a757ed4333f8ff2ad4da18bab39a.tar.bz2 |
Switch the ScriptedBreakpointResolver over to the ScriptedInterface form (#150720)
This is NFC, I'm modernizing the interface before I add to it in a
subsequent commit.
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index ae913e6..5ee19ff 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -116,6 +116,13 @@ lldb::StreamSP ScriptInterpreter::GetOpaqueTypeFromSBStream( return nullptr; } +SymbolContext ScriptInterpreter::GetOpaqueTypeFromSBSymbolContext( + const lldb::SBSymbolContext &sb_sym_ctx) const { + if (sb_sym_ctx.m_opaque_up) + return *sb_sym_ctx.m_opaque_up.get(); + return {}; +} + std::optional<MemoryRegionInfo> ScriptInterpreter::GetOpaqueTypeFromSBMemoryRegionInfo( const lldb::SBMemoryRegionInfo &mem_region) const { |