File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
lldb/source/Plugins/LanguageRuntime/Swift Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ class SwiftLanguageRuntime : public LanguageRuntime {
139
139
// / function, or suspend resume partial function symbol.
140
140
static bool IsAnySwiftAsyncFunctionSymbol (llvm::StringRef name);
141
141
142
+ // / Return true if node is a Swift async function, await resume partial
143
+ // / function, or suspend resume partial function symbol.
144
+ static bool IsAnySwiftAsyncFunctionSymbol (NodePointer node);
145
+
142
146
// / Return the async context address using the target's specific register.
143
147
static lldb::addr_t GetAsyncContext (RegisterContext *regctx);
144
148
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ bool SwiftLanguageRuntime::IsAnySwiftAsyncFunctionSymbol(StringRef name) {
130
130
using namespace swift ::Demangle;
131
131
Context ctx;
132
132
NodePointer node = SwiftLanguageRuntime::DemangleSymbolAsNode (name, ctx);
133
+ return IsAnySwiftAsyncFunctionSymbol (node);
134
+ }
135
+
136
+ bool SwiftLanguageRuntime::IsAnySwiftAsyncFunctionSymbol (NodePointer node) {
133
137
if (!node || node->getKind () != Node::Kind::Global || !node->getNumChildren ())
134
138
return false ;
135
139
auto marker = node->getFirstChild ()->getKind ();
You can’t perform that action at this time.
0 commit comments