[Lldb-commits] [lldb] r123710 - /lldb/trunk/source/Symbol/ClangASTContext.cpp

Sean Callanan scallanan at apple.com
Mon Jan 17 17:03:44 PST 2011


Author: spyffe
Date: Mon Jan 17 19:03:44 2011
New Revision: 123710

URL: http://llvm.org/viewvc/llvm-project?rev=123710&view=rev
Log:
Quick fixes to set access specifiers for Typedefs
and Enums inside classes.

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=123710&r1=123709&r2=123710&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Mon Jan 17 19:03:44 2011
@@ -3734,10 +3734,15 @@
                                             false,  // IsScoped
                                             false,  // IsScopedUsingClassTag
                                             false); // IsFixed
+    
+    
     if (enum_decl)
     {
         // TODO: check if we should be setting the promotion type too?
         enum_decl->setIntegerType(QualType::getFromOpaquePtr (integer_qual_type));
+        
+        enum_decl->setAccess(AS_public); // TODO respect what's in the debug info
+        
         return ast->getTagDeclType(enum_decl).getAsOpaquePtr();
     }
     return NULL;
@@ -4216,6 +4221,8 @@
                                                  SourceLocation(),
                                                  name ? &identifier_table->get(name) : NULL, // Identifier
                                                  ast->CreateTypeSourceInfo(qual_type));
+        
+        decl->setAccess(AS_public); // TODO respect proper access specifier
 
         // Get a uniqued QualType for the typedef decl type
         return ast->getTypedefType (decl).getAsOpaquePtr();





More information about the lldb-commits mailing list