Add comments.
authorRui Ueyama <ruiu@google.com>
Tue, 13 Sep 2016 20:41:06 +0000 (20:41 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 13 Sep 2016 20:41:06 +0000 (20:41 +0000)
llvm-svn: 281388

lld/ELF/SymbolTable.cpp

index ab4e407..c5e1224 100644 (file)
@@ -599,6 +599,9 @@ static void setVersionId(SymbolBody *Body, StringRef VersionName,
   Sym->VersionId = Version;
 }
 
+// Returns a map from demangled symbols to symbol objects.
+// The relationship is 1:N instead of 1:1 because with the symbol
+// versioning, more than one symbol may have the same name.
 template <class ELFT>
 std::map<std::string, std::vector<SymbolBody *>>
 SymbolTable<ELFT>::getDemangledSyms() {