diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2015-02-12 22:37:27 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2015-02-12 22:37:27 +0000 |
| commit | 7d71622c8fd0846d99cd0fb8878ecf255848de0a (patch) | |
| tree | ebe05234746c0efbaacfe4c8dc42fa5651dbe04b /lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp | |
| parent | b93569d182b784b7bf3a1347d7fcd50d11a550b1 (diff) | |
| download | bcm5719-llvm-7d71622c8fd0846d99cd0fb8878ecf255848de0a.tar.gz bcm5719-llvm-7d71622c8fd0846d99cd0fb8878ecf255848de0a.zip | |
[ELF] Insert wrap symbols into a set.
Symbols specified by --wrap was being inserted into a vector, change this to
insert into a set, so that we have unique entries.
llvm-svn: 228968
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp index 6498e5744b5..d4f19aa3da4 100644 --- a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp @@ -258,10 +258,11 @@ std::string ELFLinkingContext::demangle(StringRef symbolName) const { // Support --wrap option. void ELFLinkingContext::addWrapForSymbol(StringRef symbol) { - _wrapCalls.push_back(symbol); + _wrapCalls.insert(symbol); } -ELFLinkingContext::StringRefVector ELFLinkingContext::wrapCalls() const { +range<ELFLinkingContext::StringRefSetIterT> +ELFLinkingContext::wrapCalls() const { return _wrapCalls; } |

