[Lldb-commits] [lldb] [LLDB] Add unary plus and minus to DIL (PR #155617)
Ilia Kuklin via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 17 11:01:11 PST 2025
================
@@ -21,6 +21,101 @@
namespace lldb_private::dil {
+static llvm::Expected<lldb::TypeSystemSP>
+GetTypeSystemFromCU(std::shared_ptr<ExecutionContextScope> ctx) {
+ auto stack_frame = ctx->CalculateStackFrame();
+ if (!stack_frame)
+ return llvm::createStringError("no stack frame in this context");
+ SymbolContext symbol_context =
+ stack_frame->GetSymbolContext(lldb::eSymbolContextCompUnit);
+ lldb::LanguageType language = symbol_context.comp_unit->GetLanguage();
+
+ symbol_context = stack_frame->GetSymbolContext(lldb::eSymbolContextModule);
+ return symbol_context.module_sp->GetTypeSystemForLanguage(language);
+}
+
+static CompilerType GetBasicType(lldb::TypeSystemSP type_system,
+ lldb::BasicType basic_type) {
+ if (type_system)
+ return type_system.get()->GetBasicTypeFromAST(basic_type);
+
+ return CompilerType();
+}
----------------
kuilpd wrote:
@Michael137
How should I go about this?
https://github.com/llvm/llvm-project/pull/155617
More information about the lldb-commits
mailing list