Added a function to ClangASTSource to service 
lookups for Objective-C methods by selector.
Right now all it does is print log information.

Also improved the logging for imported TagDecls
to indicate whether or not the definition for
the imported TagDecl is complete.

llvm-svn: 144203
diff --git a/lldb/source/Symbol/ClangASTImporter.cpp b/lldb/source/Symbol/ClangASTImporter.cpp
index 2fc420f..ef0dcfe 100644
--- a/lldb/source/Symbol/ClangASTImporter.cpp
+++ b/lldb/source/Symbol/ClangASTImporter.cpp
@@ -165,12 +165,16 @@
         TagDecl *to_tag_decl = dyn_cast<TagDecl>(to);
         
         to_tag_decl->setHasExternalLexicalStorage();
-                
+                        
         if (log)
-            log->Printf("    [ClangASTImporter] Imported a TagDecl named %s%s%s",
+            log->Printf("    [ClangASTImporter] Imported %p, a %s named %s%s%s [%s->%s]",
+                        to,
+                        ((clang::Decl*)from_tag_decl)->getDeclKindName(),
                         from_tag_decl->getName().str().c_str(),
                         (to_tag_decl->hasExternalLexicalStorage() ? " Lexical" : ""),
-                        (to_tag_decl->hasExternalVisibleStorage() ? " Visible" : ""));
+                        (to_tag_decl->hasExternalVisibleStorage() ? " Visible" : ""),
+                        (from_tag_decl->isCompleteDefinition() ? "complete" : "incomplete"),
+                        (to_tag_decl->isCompleteDefinition() ? "complete" : "incomplete"));
     }
     
     if (isa<NamespaceDecl>(from))
@@ -186,6 +190,8 @@
     {
         ObjCInterfaceDecl *to_interface_decl = dyn_cast<ObjCInterfaceDecl>(to);
         
+        to_interface_decl->setHasExternalVisibleStorage();
+        
         if (!to_interface_decl->isForwardDecl())
             to_interface_decl->setExternallyCompleted();
     }