Author: xiaobai Date: Mon Oct 7 16:43:33 2019 New Revision: 373990 URL: http://llvm.org/viewvc/llvm-project?rev=373990&view=rev Log: [Symbol] Remove unused method ClangASTContext::GetObjCClassName
Modified: lldb/trunk/include/lldb/Symbol/ClangASTContext.h lldb/trunk/source/Symbol/ClangASTContext.cpp Modified: lldb/trunk/include/lldb/Symbol/ClangASTContext.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Symbol/ClangASTContext.h?rev=373990&r1=373989&r2=373990&view=diff ============================================================================== --- lldb/trunk/include/lldb/Symbol/ClangASTContext.h (original) +++ lldb/trunk/include/lldb/Symbol/ClangASTContext.h Mon Oct 7 16:43:33 2019 @@ -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; Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=373990&r1=373989&r2=373990&view=diff ============================================================================== --- lldb/trunk/source/Symbol/ClangASTContext.cpp (original) +++ lldb/trunk/source/Symbol/ClangASTContext.cpp Mon Oct 7 16:43:33 2019 @@ -3916,25 +3916,6 @@ bool ClangASTContext::IsObjCObjectPointe 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) { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits