summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ObjCLanguageRuntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/ObjCLanguageRuntime.cpp')
-rw-r--r--lldb/source/Target/ObjCLanguageRuntime.cpp92
1 files changed, 0 insertions, 92 deletions
diff --git a/lldb/source/Target/ObjCLanguageRuntime.cpp b/lldb/source/Target/ObjCLanguageRuntime.cpp
index a567a8802af..078fa5dd510 100644
--- a/lldb/source/Target/ObjCLanguageRuntime.cpp
+++ b/lldb/source/Target/ObjCLanguageRuntime.cpp
@@ -411,98 +411,6 @@ ObjCLanguageRuntime::MethodName::GetFullNames (std::vector<ConstString> &names,
}
-//uint32_t
-//ObjCLanguageRuntime::ParseMethodName (const char *name,
-// ConstString *class_name, // Class name (with category if any)
-// ConstString *selector_name, // selector on its own
-// ConstString *name_sans_category, // Full function prototype with no category
-// ConstString *class_name_sans_category)// Class name with no category (or empty if no category as answer will be in "class_name"
-//{
-// static ScopedTimerAggregator g_scoped_timer_aggregator ("ObjCLanguageRuntime::ParseMethodName");
-// ScopedTimer scoped_timer;
-// uint32_t result = 0;
-// if (class_name)
-// class_name->Clear();
-// if (selector_name)
-// selector_name->Clear();
-// if (name_sans_category)
-// name_sans_category->Clear();
-// if (class_name_sans_category)
-// class_name_sans_category->Clear();
-//
-//
-// if (IsPossibleObjCMethodName (name))
-// {
-// int name_len = strlen (name);
-// // Objective C methods must have at least:
-// // "-[" or "+[" prefix
-// // One character for a class name
-// // One character for the space between the class name
-// // One character for the method name
-// // "]" suffix
-// if (name_len >= 6 && name[name_len - 1] == ']')
-// {
-// const char *selector_name_ptr = strchr (name, ' ');
-// if (selector_name_ptr)
-// {
-// if (class_name)
-// {
-// class_name->SetCStringWithLength (name + 2, selector_name_ptr - name - 2);
-// ++result;
-// }
-//
-// // Skip the space
-// ++selector_name_ptr;
-// // Extract the objective C basename and add it to the
-// // accelerator tables
-// size_t selector_name_len = name_len - (selector_name_ptr - name) - 1;
-// if (selector_name)
-// {
-// selector_name->SetCStringWithLength (selector_name_ptr, selector_name_len);
-// ++result;
-// }
-//
-// // Also see if this is a "category" on our class. If so strip off the category name,
-// // and add the class name without it to the basename table.
-//
-// if (name_sans_category || class_name_sans_category)
-// {
-// const char *open_paren = strchr (name, '(');
-// if (open_paren)
-// {
-// if (class_name_sans_category)
-// {
-// class_name_sans_category->SetCStringWithLength (name + 2, open_paren - name - 2);
-// ++result;
-// }
-//
-// if (name_sans_category)
-// {
-// const char *close_paren = strchr (open_paren, ')');
-// if (open_paren < close_paren)
-// {
-// std::string buffer (name, open_paren - name);
-// buffer.append (close_paren + 1);
-// name_sans_category->SetCString (buffer.c_str());
-// ++result;
-// }
-// }
-// }
-// }
-// }
-// }
-// }
-// ObjCLanguageRuntime::MethodName method_name(name, true);
-// if (class_name)
-// assert (*class_name == method_name.GetClassNameWithCategory());
-// if (selector_name)
-// assert (*selector_name == method_name.GetSelector());
-// if (class_name_sans_category)
-// assert (*class_name_sans_category == method_name.GetClassName());
-// g_scoped_timer_aggregator.Aggregate (scoped_timer);
-// return result;
-//}
-
bool
ObjCLanguageRuntime::ClassDescriptor::IsPointerValid (lldb::addr_t value,
uint32_t ptr_size,
OpenPOWER on IntegriCloud