projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8b6684
)
Add comments.
author
Rui Ueyama
<ruiu@google.com>
Tue, 13 Sep 2016 20:41:06 +0000
(20:41 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Tue, 13 Sep 2016 20:41:06 +0000
(20:41 +0000)
llvm-svn: 281388
lld/ELF/SymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/SymbolTable.cpp
b/lld/ELF/SymbolTable.cpp
index
ab4e407
..
c5e1224
100644
(file)
--- a/
lld/ELF/SymbolTable.cpp
+++ b/
lld/ELF/SymbolTable.cpp
@@
-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() {