diff options
author | Rui Ueyama <ruiu@google.com> | 2015-01-16 20:48:46 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-01-16 20:48:46 +0000 |
commit | 6d176f88eac8830f79f3bd4107934142857398d3 (patch) | |
tree | a77d03351597720df6a793c945f8ba161fae17d3 /lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.cpp | |
parent | 3b047e0ee5f0bf58d8d9ecfa4760bcc24be3297d (diff) | |
download | bcm5719-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.cpp | 4 |
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 + '@'; |