[Symbol] Remove unused method ClangASTContext::GetObjCClassName

llvm-svn: 373990
This commit is contained in:
Alex Langford
2019-10-07 23:43:33 +00:00
parent c8a6df7130
commit f4c7345b88
2 changed files with 0 additions and 22 deletions

View File

@@ -603,9 +603,6 @@ public:
static bool GetCXXClassName(const CompilerType &type,
std::string &class_name);
static bool GetObjCClassName(const CompilerType &type,
std::string &class_name);
// Type Completion
bool GetCompleteType(lldb::opaque_compiler_type_t type) override;

View File

@@ -3916,25 +3916,6 @@ bool ClangASTContext::IsObjCObjectPointerType(const CompilerType &type,
return false;
}
bool ClangASTContext::GetObjCClassName(const CompilerType &type,
std::string &class_name) {
if (!type)
return false;
clang::QualType qual_type(ClangUtil::GetCanonicalQualType(type));
const clang::ObjCObjectType *object_type =
llvm::dyn_cast<clang::ObjCObjectType>(qual_type);
if (object_type) {
const clang::ObjCInterfaceDecl *interface = object_type->getInterface();
if (interface) {
class_name = interface->getNameAsString();
return true;
}
}
return false;
}
// Type Completion
bool ClangASTContext::GetCompleteType(lldb::opaque_compiler_type_t type) {