Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused Object::find_symbol in Object-elf #1480

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 0 additions & 24 deletions symtabAPI/src/Object-elf.C
Original file line number Diff line number Diff line change
Expand Up @@ -2165,30 +2165,6 @@ dyn_scnp, Elf_X_Data &symdata,
#endif
}

#if defined(cap_dwarf)

string Object::find_symbol(string name) {
string name2;

// pass #1: unmodified
name2 = name;
if (symbols_.contains(name2)) return name2;

// pass #2: leading underscore (C)
name2 = "_" + name;
if (symbols_.contains(name2)) return name2;

// pass #3: trailing underscore (Fortran)
name2 = name + "_";
if (symbols_.contains(name2))
return name2;

return "";
}

#endif


/********************************************************
*
* For object files only....
Expand Down
4 changes: 0 additions & 4 deletions symtabAPI/src/Object-elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,6 @@ class Object : public AObject
std::vector<ExceptionBlock> &catch_addrs);
// Line info: CUs to skip
std::set<std::string> modules_parsed_for_line_info;
#if defined(cap_dwarf)
std::string find_symbol(std::string name);

#endif

public:
struct DbgAddrConversion_t {
Expand Down