Don't include the ":" character when building the selector identifiers
when making objective C classes from the DWARF.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117438 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Symbol/ClangASTContext.cpp b/source/Symbol/ClangASTContext.cpp
index b536176..c5d1cc6 100644
--- a/source/Symbol/ClangASTContext.cpp
+++ b/source/Symbol/ClangASTContext.cpp
@@ -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;
     }