Skip to content

Commit d3ceefd

Browse files
AnthonyLatsissmeenai
authored andcommitted
[Swift] AST: Rename getFullName -> getName for swiftlang/swift#31224
(cherry picked from commit 1d4e7ca)
1 parent fd760bb commit d3ceefd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class LLDBExprNameLookup : public LLDBNameLookup {
326326
swift::ValueDecl *value_decl = persistent_results[idx];
327327
if (!value_decl)
328328
continue;
329-
swift::DeclName value_decl_name = value_decl->getFullName();
329+
swift::DeclName value_decl_name = value_decl->getName();
330330
swift::DeclKind value_decl_kind = value_decl->getKind();
331331
swift::CanType value_interface_type =
332332
value_decl->getInterfaceType()->getCanonicalType();
@@ -339,7 +339,7 @@ class LLDBExprNameLookup : public LLDBNameLookup {
339339
if (swift::ValueDecl *rv_decl = RV[rv_idx].getValueDecl()) {
340340
if (value_decl_kind == rv_decl->getKind()) {
341341
if (is_function) {
342-
swift::DeclName rv_full_name = rv_decl->getFullName();
342+
swift::DeclName rv_full_name = rv_decl->getName();
343343
if (rv_full_name.matchesRef(value_decl_name)) {
344344
// If the full names match, make sure the
345345
// interface types match:

lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/InstrumentationRuntimeMainThreadChecker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ static std::string TranslateObjCNameToSwiftName(std::string className,
136136
// If the decl is actually an accessor, use the property name instead.
137137
swift::AbstractFunctionDecl *decl = funcs.front();
138138
if (auto accessor = llvm::dyn_cast<swift::AccessorDecl>(decl)) {
139-
result = accessor->getStorage()->getFullName();
139+
result = accessor->getStorage()->getName();
140140
return;
141141
}
142142

143-
result = decl->getFullName();
143+
result = decl->getName();
144144
}
145145
};
146146

0 commit comments

Comments
 (0)