Skip to content

[upstreaming] Move GetGenericArgumentKind to SwiftASTContext #263

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
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion lldb/include/lldb/Symbol/CompilerType.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ class CompilerType {
lldb::TemplateArgumentKind GetTemplateArgumentKind(size_t idx) const;
CompilerType GetTypeTemplateArgument(size_t idx) const;

lldb::GenericKind GetGenericArgumentKind(size_t idx) const;
CompilerType GetGenericArgumentType(size_t idx) const;

// Returns the value of the template argument and its type.
Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/Symbol/SwiftASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class SwiftASTContext : public TypeSystem {

size_t GetNumTemplateArguments(void *type) override;

lldb::GenericKind GetGenericArgumentKind(void *type, size_t idx) override;
lldb::GenericKind GetGenericArgumentKind(void *type, size_t idx);
CompilerType GetUnboundGenericType(void *type, size_t idx);
CompilerType GetBoundGenericType(void *type, size_t idx);
CompilerType GetGenericArgumentType(void *type, size_t idx) override;
Expand Down
1 change: 0 additions & 1 deletion lldb/include/lldb/Symbol/TypeSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ class TypeSystem : public PluginInterface {
virtual llvm::Optional<CompilerType::IntegralTemplateArgument>
GetIntegralTemplateArgument(lldb::opaque_compiler_type_t type, size_t idx);

virtual lldb::GenericKind GetGenericArgumentKind(void *type, size_t idx);
virtual CompilerType GetGenericArgumentType(void *type, size_t idx);

// Dumping types
Expand Down
6 changes: 0 additions & 6 deletions lldb/source/Symbol/CompilerType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,12 +719,6 @@ CompilerType CompilerType::GetTypeTemplateArgument(size_t idx) const {
return CompilerType();
}

GenericKind CompilerType::GetGenericArgumentKind(size_t idx) const {
if (IsValid())
return m_type_system->GetGenericArgumentKind(m_type, idx);
return eNullGenericKindType;
}

CompilerType CompilerType::GetGenericArgumentType(size_t idx) const {
if (IsValid()) {
return m_type_system->GetGenericArgumentType(m_type, idx);
Expand Down
4 changes: 0 additions & 4 deletions lldb/source/Symbol/TypeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ CompilerType TypeSystem::GetTypeTemplateArgument(opaque_compiler_type_t type,
return CompilerType();
}

GenericKind TypeSystem::GetGenericArgumentKind(void *type, size_t idx) {
return eNullGenericKindType;
}

CompilerType TypeSystem::GetGenericArgumentType(void *type, size_t idx) {
return CompilerType();
}
Expand Down