This is an archive of the discontinued LLVM Phabricator instance.

Use more consistent names
ClosedPublic

Authored by rafael on Aug 1 2017, 4:04 PM.

Details

Reviewers
ruiu
grimar
Summary

Reviewing another change I noticed that we use "getSymbols" to mean different things in different files. Depending on the file it can return

  • ArrayRef<StringRef>
  • ArrayRef<SymbolBody*>
  • ArrayRef<Symbol*>
  • ArrayRef<Elf_Sym>

With this change it always returns an ArrayRef<SymbolBody*>. The other functions are renamed getELFsymbols() and getSymbolNames().

Note that we cannot return ArrayRef<Symbol*> instead of ArreyRef<SymbolBody*> because local symbols have a SymbolBody but not a Symbol.

Diff Detail

Event Timeline

rafael created this revision.Aug 1 2017, 4:04 PM

getting phab to send email

ruiu accepted this revision.Aug 1 2017, 10:21 PM

LGTM

ELF/InputFiles.h
133

nit: I think I prefer ELFSyms over ELFSymbols.

This revision is now accepted and ready to land.Aug 1 2017, 10:21 PM
grimar accepted this revision.Aug 2 2017, 12:17 AM

LGTM.

grimar closed this revision.Aug 17 2017, 2:23 AM

Was committed in r309840