summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ObjCLanguageRuntime.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-11-02 17:09:58 +0000
committerSean Callanan <scallanan@apple.com>2012-11-02 17:09:58 +0000
commit5540094ccdae828dc0ba970ab4f6cb836cb50c04 (patch)
tree4b2469435a9be6e702360e74ce6672e0c00cf5d0 /lldb/source/Target/ObjCLanguageRuntime.cpp
parent58358897a3cff212d6dd618286175ac2e82841a0 (diff)
downloadbcm5719-llvm-5540094ccdae828dc0ba970ab4f6cb836cb50c04.tar.gz
bcm5719-llvm-5540094ccdae828dc0ba970ab4f6cb836cb50c04.zip
Extra safeguards to ensure that we never query
the runtime if we have complete debug information for a class. Also made the Objective-C language runtime return NULL when asked for the complete debug information (i.e., information from DWARF, not information from the runtime) if that information isn't present. It used to return a non-authoritative version, which made it hard for clients to determine whether complete debug information was available. <rdar://problem/12608895> llvm-svn: 167299
Diffstat (limited to 'lldb/source/Target/ObjCLanguageRuntime.cpp')
-rw-r--r--lldb/source/Target/ObjCLanguageRuntime.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lldb/source/Target/ObjCLanguageRuntime.cpp b/lldb/source/Target/ObjCLanguageRuntime.cpp
index d3c8a0c6f99..0be1c96d1ce 100644
--- a/lldb/source/Target/ObjCLanguageRuntime.cpp
+++ b/lldb/source/Target/ObjCLanguageRuntime.cpp
@@ -124,17 +124,6 @@ ObjCLanguageRuntime::LookupInCompleteClassCache (ConstString &name)
incomplete_type_sp = type_sp;
}
}
-
- // We didn't find any "real" definitions, so just use any??? Why was
- // this being done? Prior to this, if there was 1 match only, then it
- // would always use any objc definition, else we would only accept a
- // definition if it was the real thing???? Doesn't make sense.
-
- if (incomplete_type_sp)
- {
- m_complete_class_cache[name] = incomplete_type_sp;
- return incomplete_type_sp;
- }
}
}
return TypeSP();
OpenPOWER on IntegriCloud