Skip to content

Commit 31a2317

Browse files
committed
Hoist GetCompleteType from SwiftASTContext into TypeSystemSwift (NFC)
1 parent be66ee0 commit 31a2317

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5322,10 +5322,6 @@ SwiftASTContext::GetAllocationStrategy(opaque_compiler_type_t type) {
53225322
// Type Completion
53235323
//----------------------------------------------------------------------
53245324

5325-
bool SwiftASTContext::GetCompleteType(opaque_compiler_type_t type) {
5326-
return true;
5327-
}
5328-
53295325
ConstString SwiftASTContext::GetTypeName(opaque_compiler_type_t type) {
53305326
std::string type_name;
53315327
if (type) {

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,6 @@ class SwiftASTContext : public TypeSystemSwift {
515515
const CompilerType &type, NonTriviallyManagedReferenceStrategy &strategy,
516516
CompilerType *underlying_type = nullptr);
517517

518-
// Type Completion
519-
520-
bool GetCompleteType(lldb::opaque_compiler_type_t type) override;
521-
522518
// AST related queries
523519

524520
uint32_t GetPointerByteSize() override;

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwift.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ class TypeSystemSwift : public TypeSystem {
159159
bool IsBeingDefined(lldb::opaque_compiler_type_t type) override {
160160
return false;
161161
}
162+
bool GetCompleteType(lldb::opaque_compiler_type_t type) override {
163+
return true;
164+
}
162165
bool CanPassInRegisters(const CompilerType &type) override {
163166
// FIXME: Implement this. There was an abort() here to figure out which
164167
// tests where hitting this code. At least TestSwiftReturns and

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,6 @@ bool TypeSystemSwiftTypeRef::IsVoidType(opaque_compiler_type_t type) {
13851385
};
13861386
VALIDATE_AND_RETURN(impl, IsVoidType, type, (ReconstructType(type)));
13871387
}
1388-
// Type Completion
1389-
bool TypeSystemSwiftTypeRef::GetCompleteType(opaque_compiler_type_t type) {
1390-
return m_swift_ast_context->GetCompleteType(ReconstructType(type));
1391-
}
13921388
// AST related queries
13931389
uint32_t TypeSystemSwiftTypeRef::GetPointerByteSize() {
13941390
return m_swift_ast_context->GetPointerByteSize();

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ class TypeSystemSwiftTypeRef : public TypeSystemSwift {
101101
bool IsPointerType(lldb::opaque_compiler_type_t type,
102102
CompilerType *pointee_type) override;
103103
bool IsVoidType(lldb::opaque_compiler_type_t type) override;
104-
// Type Completion
105-
bool GetCompleteType(lldb::opaque_compiler_type_t type) override;
106104
// AST related queries
107105
uint32_t GetPointerByteSize() override;
108106
// Accessors

0 commit comments

Comments
 (0)