Skip to content

[lldb] Remove outdated use of getSwiftName #6634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,21 +298,6 @@ TypeSystemSwiftTypeRef::GetClangTypeNode(CompilerType clang_type,
if (clang_type.IsPointerType(&pointee))
clang_type = pointee;
llvm::StringRef clang_name = clang_type.GetTypeName().GetStringRef();
// FIXME: Create a higher-level entry point for this by generalizing
// ClangAdapter.
struct Adapter {
struct Context {
swift::ASTContext *AST;
llvm::StringRef getSwiftName(swift::KnownFoundationEntity entity) {
if (AST)
return AST->getSwiftName(entity);
return "<error: no Swift context>";
}
Context(swift::ASTContext *ctx) : AST(ctx){};
} SwiftContext;
Adapter(swift::ASTContext *ctx) : SwiftContext(ctx){};
} Impl(GetSwiftASTContext() ? GetSwiftASTContext()->GetASTContext()
: nullptr);
#define MAP_TYPE(C_TYPE_NAME, C_TYPE_KIND, C_TYPE_BITWIDTH, SWIFT_MODULE_NAME, \
SWIFT_TYPE_NAME, CAN_BE_MISSING, C_NAME_MAPPING) \
if (clang_name.equals(C_TYPE_NAME)) { \
Expand Down