Skip to content

Commit

Permalink
Remove 'directory definitions' check
Browse files Browse the repository at this point in the history
This kind of name is never used manually anywhere in Dyninst and the
names that come from DWARF compilation units (CUs) are never
directories.
  • Loading branch information
hainest committed Oct 8, 2023
1 parent 302f77d commit b3f0193
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions symtabAPI/src/Symtab.C
Expand Up @@ -807,14 +807,6 @@ Module *Symtab::getOrCreateModule(const std::string &modName,

if (fm) return fm;

const char *str = modName.c_str();
int len = modName.length();
assert(len>0);

// TODO ignore directory definitions for now
if (str[len-1] == '/')
return NULL;

Module *ret = NULL;

std::string fileNm, fullNm;
Expand Down

0 comments on commit b3f0193

Please sign in to comment.