aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Target/Language.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2025-12-07 15:15:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2026-04-25 14:08:55 +0000
commit700637cbb5e582861067a11aaca4d053546871d2 (patch)
treeab6bc1bd44df7c10d03c5bfb24e6fab6446f32ee /contrib/llvm-project/lldb/source/Target/Language.cpp
parent6243d755fb82e62d2a3a2e031801e0443150454a (diff)
parent3f709e42e3be0f28a88ca3e77663a02b52c914f4 (diff)
Merge llvm-project main llvmorg-21-init-19288-gface93e724f4
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-21-init-19288-gface93e724f4, the last commit before the upstream release/21.x branch was created. PR: 292067 MFC after: 1 month
Diffstat (limited to 'contrib/llvm-project/lldb/source/Target/Language.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Target/Language.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/llvm-project/lldb/source/Target/Language.cpp b/contrib/llvm-project/lldb/source/Target/Language.cpp
index d0bffe441f63..86754c251cd9 100644
--- a/contrib/llvm-project/lldb/source/Target/Language.cpp
+++ b/contrib/llvm-project/lldb/source/Target/Language.cpp
@@ -510,7 +510,7 @@ bool Language::IsNilReference(ValueObject &valobj) { return false; }
bool Language::IsUninitializedReference(ValueObject &valobj) { return false; }
-bool Language::GetFunctionDisplayName(const SymbolContext *sc,
+bool Language::GetFunctionDisplayName(const SymbolContext &sc,
const ExecutionContext *exe_ctx,
FunctionNameRepresentation representation,
Stream &s) {
@@ -528,6 +528,14 @@ void Language::GetDefaultExceptionResolverDescription(bool catch_on,
s.Printf("Exception breakpoint (catch: %s throw: %s)",
catch_on ? "on" : "off", throw_on ? "on" : "off");
}
+
+std::optional<bool> Language::GetBooleanFromString(llvm::StringRef str) const {
+ return llvm::StringSwitch<std::optional<bool>>(str)
+ .Case("true", {true})
+ .Case("false", {false})
+ .Default({});
+}
+
// Constructor
Language::Language() = default;