Skip to content

Commit c2a0e3e

Browse files
authored
Merge pull request #6634 from apple/dl/lldb-remove-outdated-use-of-getswiftname
[lldb] Remove outdated use of getSwiftName
2 parents 5d0f8c5 + f464385 commit c2a0e3e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -298,21 +298,6 @@ TypeSystemSwiftTypeRef::GetClangTypeNode(CompilerType clang_type,
298298
if (clang_type.IsPointerType(&pointee))
299299
clang_type = pointee;
300300
llvm::StringRef clang_name = clang_type.GetTypeName().GetStringRef();
301-
// FIXME: Create a higher-level entry point for this by generalizing
302-
// ClangAdapter.
303-
struct Adapter {
304-
struct Context {
305-
swift::ASTContext *AST;
306-
llvm::StringRef getSwiftName(swift::KnownFoundationEntity entity) {
307-
if (AST)
308-
return AST->getSwiftName(entity);
309-
return "<error: no Swift context>";
310-
}
311-
Context(swift::ASTContext *ctx) : AST(ctx){};
312-
} SwiftContext;
313-
Adapter(swift::ASTContext *ctx) : SwiftContext(ctx){};
314-
} Impl(GetSwiftASTContext() ? GetSwiftASTContext()->GetASTContext()
315-
: nullptr);
316301
#define MAP_TYPE(C_TYPE_NAME, C_TYPE_KIND, C_TYPE_BITWIDTH, SWIFT_MODULE_NAME, \
317302
SWIFT_TYPE_NAME, CAN_BE_MISSING, C_NAME_MAPPING) \
318303
if (clang_name.equals(C_TYPE_NAME)) { \

0 commit comments

Comments
 (0)