From b3f0193caced247f8092365006507c3622f36118 Mon Sep 17 00:00:00 2001 From: Tim Haines Date: Sun, 8 Oct 2023 15:11:34 -0500 Subject: [PATCH] Remove 'directory definitions' check This kind of name is never used manually anywhere in Dyninst and the names that come from DWARF compilation units (CUs) are never directories. --- symtabAPI/src/Symtab.C | 8 -------- 1 file changed, 8 deletions(-) diff --git a/symtabAPI/src/Symtab.C b/symtabAPI/src/Symtab.C index 1fc4977bb8..acc8ee000c 100644 --- a/symtabAPI/src/Symtab.C +++ b/symtabAPI/src/Symtab.C @@ -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;