[lld] r267260 - Add more comment.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 18:10:13 PDT 2016
Author: ruiu
Date: Fri Apr 22 20:10:13 2016
New Revision: 267260
URL: http://llvm.org/viewvc/llvm-project?rev=267260&view=rev
Log:
Add more comment.
Modified:
lld/trunk/ELF/SymbolTable.cpp
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=267260&r1=267259&r2=267260&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Fri Apr 22 20:10:13 2016
@@ -209,6 +209,7 @@ template <class ELFT> void SymbolTable<E
// 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();
More information about the llvm-commits
mailing list