Add more comment.

llvm-svn: 267260
This commit is contained in:
Rui Ueyama 2016-04-23 01:10:13 +00:00
parent 4255475139
commit 209f6cb055
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ template <class ELFT> void SymbolTable<ELFT>::wrap(StringRef Name) {
// Returns a file from which symbol B was created.
// If B does not belong to any file, returns a nullptr.
// This function is slow, but it's okay as it is used only for error messages.
template <class ELFT> InputFile *SymbolTable<ELFT>::findFile(SymbolBody *B) {
for (const std::unique_ptr<ObjectFile<ELFT>> &F : ObjectFiles) {
ArrayRef<SymbolBody *> Syms = F->getSymbols();