labath added inline comments.

================
Comment at: source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp:70
+      continue;
+
+    Append(entry, offsets);
----------------
clayborg wrote:
> Need to check for the context matches here if context is not empty.
Hmm... thanks for pointing this out. There is some index-independent filtering 
based on CompilerDeclContexts happening in SymbolFileDWARF (which is why my 
context test actually passes here).

I was basing this off of how apple and manual indexes work, and neither of them 
check the context. In fact, the manual index does not even extract the 
identifier portion of the name (it just looks up the whole string), so maybe 
nobody passes qualified names names into this function anyway? I am starting to 
think I should just remove the `ExtractContextAndIdentifier` call. If we see 
failures down the line, at least we will learn why was this call there in the 
first place.


https://reviews.llvm.org/D47781



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to