tberghammer accepted this revision. tberghammer added a comment. This revision is now accepted and ready to land.
Looks good with minor comment inline ================ Comment at: source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:3228-3230 @@ -3227,3 +3227,5 @@ - if (die.GetReferencedDIE(DW_AT_specification)) - return GetClangDeclForDIE(die.GetReferencedDIE(DW_AT_specification)); + const std::set<dw_tag_t> tags_with_decls { DW_TAG_variable, DW_TAG_constant, DW_TAG_formal_parameter, DW_TAG_imported_module, DW_TAG_imported_declaration }; + if (tags_with_decls.find(die.Tag()) == tags_with_decls.end()) + return nullptr; + ---------------- I think using a switch would be both simpler and faster http://reviews.llvm.org/D12942 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits