forked from OSchip/llvm-project
[lldb] Remove unused CompilerDeclContext::IsStructUnionOrClass
This commit is contained in:
parent
7394c15178
commit
218601ada1
|
@ -444,8 +444,6 @@ public:
|
|||
DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name,
|
||||
const bool ignore_using_decls) override;
|
||||
|
||||
bool DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) override;
|
||||
|
||||
ConstString DeclContextGetName(void *opaque_decl_ctx) override;
|
||||
|
||||
ConstString DeclContextGetScopeQualifiedName(void *opaque_decl_ctx) override;
|
||||
|
|
|
@ -98,8 +98,6 @@ public:
|
|||
|
||||
ConstString GetScopeQualifiedName() const;
|
||||
|
||||
bool IsStructUnionOrClass() const;
|
||||
|
||||
private:
|
||||
TypeSystem *m_type_system = nullptr;
|
||||
void *m_opaque_decl_ctx = nullptr;
|
||||
|
|
|
@ -98,8 +98,6 @@ public:
|
|||
DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name,
|
||||
const bool ignore_imported_decls);
|
||||
|
||||
virtual bool DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) = 0;
|
||||
|
||||
virtual ConstString DeclContextGetName(void *opaque_decl_ctx) = 0;
|
||||
|
||||
virtual ConstString
|
||||
|
|
|
@ -9268,13 +9268,6 @@ uint32_t ClangASTContext::CountDeclLevels(clang::DeclContext *frame_decl_ctx,
|
|||
return LLDB_INVALID_DECL_LEVEL;
|
||||
}
|
||||
|
||||
bool ClangASTContext::DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) {
|
||||
if (opaque_decl_ctx)
|
||||
return ((clang::DeclContext *)opaque_decl_ctx)->isRecord();
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
ConstString ClangASTContext::DeclContextGetName(void *opaque_decl_ctx) {
|
||||
if (opaque_decl_ctx) {
|
||||
clang::NamedDecl *named_decl =
|
||||
|
|
|
@ -37,13 +37,6 @@ ConstString CompilerDeclContext::GetScopeQualifiedName() const {
|
|||
return ConstString();
|
||||
}
|
||||
|
||||
bool CompilerDeclContext::IsStructUnionOrClass() const {
|
||||
if (IsValid())
|
||||
return m_type_system->DeclContextIsStructUnionOrClass(m_opaque_decl_ctx);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CompilerDeclContext::IsClassMethod(lldb::LanguageType *language_ptr,
|
||||
bool *is_instance_method_ptr,
|
||||
ConstString *language_object_name_ptr) {
|
||||
|
|
Loading…
Reference in New Issue