summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-16 20:48:46 +0000
committerRui Ueyama <ruiu@google.com>2015-01-16 20:48:46 +0000
commit6d176f88eac8830f79f3bd4107934142857398d3 (patch)
treea77d03351597720df6a793c945f8ba161fae17d3 /lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp
parent3b047e0ee5f0bf58d8d9ecfa4760bcc24be3297d (diff)
downloadbcm5719-llvm-6d176f88eac8830f79f3bd4107934142857398d3.tar.gz
bcm5719-llvm-6d176f88eac8830f79f3bd4107934142857398d3.zip
[PECOFF] Remove ResolvableSymbols to simplify.
We had such class there because of InputGraph abstraction. Previously, no one except InputGraph itself has complete picture of input file list. In order to create a set of all defined symbols, we had to use some indirections there to workaround InputGraph. It can now be rewritten as simple code. No change in functionality. llvm-svn: 226319
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp')
-rw-r--r--lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp b/lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp
index 9825912a2ae..a11410784b8 100644
--- a/lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp
@@ -13,9 +13,9 @@ namespace lld {
namespace pecoff {
// Find decorated symbol, namely /sym@[0-9]+/ or /\?sym@@.+/.
-bool findDecoratedSymbol(PECOFFLinkingContext *ctx, ResolvableSymbols *syms,
+bool findDecoratedSymbol(PECOFFLinkingContext *ctx,
std::string sym, std::string &res) {
- const std::set<std::string> &defined = syms->defined();
+ const std::set<std::string> &defined = ctx->definedSymbols();
// Search for /sym@[0-9]+/
{
std::string s = sym + '@';
OpenPOWER on IntegriCloud