[lldb] Remove debugging code used for LLDB_DWARF_DONT_COMPLETE_TYPENAMES

Reviewers: labath, clayborg, shafik

Reviewed By: labath

Subscribers: JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70802
This commit is contained in:
Raphael Isemann 2019-11-28 10:21:47 +01:00
parent bb7d75ef1d
commit b44e91a472
1 changed files with 0 additions and 33 deletions

View File

@ -1984,39 +1984,6 @@ bool DWARFASTParserClang::CompleteTypeFromDWARF(const DWARFDIE &die,
if (!die)
return false;
#if defined LLDB_CONFIGURATION_DEBUG
// For debugging purposes, the LLDB_DWARF_DONT_COMPLETE_TYPENAMES environment
// variable can be set with one or more typenames separated by ';'
// characters. This will cause this function to not complete any types whose
// names match.
//
// Examples of setting this environment variable:
//
// LLDB_DWARF_DONT_COMPLETE_TYPENAMES=Foo
// LLDB_DWARF_DONT_COMPLETE_TYPENAMES=Foo;Bar;Baz
const char *dont_complete_typenames_cstr =
getenv("LLDB_DWARF_DONT_COMPLETE_TYPENAMES");
if (dont_complete_typenames_cstr && dont_complete_typenames_cstr[0]) {
const char *die_name = die.GetName();
if (die_name && die_name[0]) {
const char *match = strstr(dont_complete_typenames_cstr, die_name);
if (match) {
size_t die_name_length = strlen(die_name);
while (match) {
const char separator_char = ';';
const char next_char = match[die_name_length];
if (next_char == '\0' || next_char == separator_char) {
if (match == dont_complete_typenames_cstr ||
match[-1] == separator_char)
return false;
}
match = strstr(match + 1, die_name);
}
}
}
}
#endif
const dw_tag_t tag = die.Tag();
Log *log =