[Lldb-commits] [lldb] 54b86b0 - [lldb][NFC] Remove unused ClangASTContext::GetUnknownAnyType

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 20 04:08:08 PST 2019


Author: Raphael Isemann
Date: 2019-11-20T13:07:43+01:00
New Revision: 54b86b010bf52ae3f1c5499e38dc8ea52e17a9f2

URL: https://github.com/llvm/llvm-project/commit/54b86b010bf52ae3f1c5499e38dc8ea52e17a9f2
DIFF: https://github.com/llvm/llvm-project/commit/54b86b010bf52ae3f1c5499e38dc8ea52e17a9f2.diff

LOG: [lldb][NFC] Remove unused ClangASTContext::GetUnknownAnyType

Added: 
    

Modified: 
    lldb/include/lldb/Symbol/ClangASTContext.h
    lldb/source/Symbol/ClangASTContext.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h
index c279bdb82c46..f4428c682182 100644
--- a/lldb/include/lldb/Symbol/ClangASTContext.h
+++ b/lldb/include/lldb/Symbol/ClangASTContext.h
@@ -163,12 +163,6 @@ class ClangASTContext : public TypeSystem {
 
   CompilerType GetCStringType(bool is_const);
 
-  static CompilerType GetUnknownAnyType(clang::ASTContext *ast);
-
-  CompilerType GetUnknownAnyType() {
-    return ClangASTContext::GetUnknownAnyType(getASTContext());
-  }
-
   static clang::DeclContext *GetDeclContextForType(clang::QualType type);
 
   static clang::DeclContext *GetDeclContextForType(const CompilerType &type);

diff  --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index bee72b219b5e..b35d264ceb9d 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -1236,13 +1236,6 @@ CompilerType ClangASTContext::GetBuiltinTypeForDWARFEncodingAndBitSize(
   return CompilerType();
 }
 
-CompilerType ClangASTContext::GetUnknownAnyType(clang::ASTContext *ast) {
-  if (ast)
-    return CompilerType(ClangASTContext::GetASTContext(ast),
-                        ast->UnknownAnyTy.getAsOpaquePtr());
-  return CompilerType();
-}
-
 CompilerType ClangASTContext::GetCStringType(bool is_const) {
   ASTContext *ast = getASTContext();
   QualType char_type(ast->CharTy);


        


More information about the lldb-commits mailing list