mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
[Symbol] Remove unused method ClangASTContext::GetObjCClassName
llvm-svn: 373990
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user