Removed spurious lookup of the $__lldb_expr

selector when compiling an expression in an
Objective-C context.

<rdar://problem/15797390>

llvm-svn: 200950
This commit is contained in:
Sean Callanan 2014-02-06 22:24:11 +00:00
parent 1fec3dfe43
commit d6be7085c2
2 changed files with 3 additions and 2 deletions

View File

@ -974,6 +974,9 @@ ClangASTSource::FindObjCMethodDecls (NameSearchContext &context)
}
ss.Flush();
if (strstr(ss.GetData(), "$__lldb"))
return; // we don't need any results
ConstString selector_name(ss.GetData());
if (log)

View File

@ -113,14 +113,12 @@ class FoundationTestCase(TestBase):
substrs = ["Foundation`-[NSAutoreleasePool release]"])
@dsym_test
@expectedFailureDarwin(15797390)
def test_expression_lookups_objc_dsym(self):
"""Test running an expression detect spurious debug info lookups (dSYM)."""
self.buildDsym()
self.expression_lookups_objc()
@dwarf_test
@expectedFailureDarwin(15797390)
def test_expression_lookups_objc_dwarf(self):
"""Test running an expression detect spurious debug info lookups (DWARF)."""
self.buildDwarf()