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

Greg Clayton gclayton at apple.com
Tue Oct 26 21:01:15 PDT 2010


Author: gclayton
Date: Tue Oct 26 23:01:14 2010
New Revision: 117438

URL: http://llvm.org/viewvc/llvm-project?rev=117438&view=rev
Log:
Don't include the ":" character when building the selector identifiers
when making objective C classes from the DWARF.


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=117438&r1=117437&r2=117438&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Tue Oct 26 23:01:14 2010
@@ -1570,13 +1570,13 @@
          start += len)
     {
         len = ::strcspn(start, ":]");
-        if (start[len] == ':')
-        {
+        bool has_arg = (start[len] == ':');
+        if (has_arg)
             ++num_selectors_with_args;
-            len += 1;
-        }
-        //printf ("@selector[%zu] = '%.*s'\n", selector_idents.size(), (int)len, start);
+        printf ("@selector[%zu] = '%.*s'\n", selector_idents.size(), (int)len, start);
         selector_idents.push_back (&identifier_table->get (StringRef (start, len)));
+        if (has_arg)
+            len += 1;
     }
 
     





More information about the lldb-commits mailing list