diff options
author | Shankar Easwaran <shankare@codeaurora.org> | 2013-10-29 05:33:52 +0000 |
---|---|---|
committer | Shankar Easwaran <shankare@codeaurora.org> | 2013-10-29 05:33:52 +0000 |
commit | b1ffd99b6a262f674c4cf8ca81205f39baed6765 (patch) | |
tree | 1dadd1ad1c33bcddb9503d4656f6a87d340b5918 | |
parent | a687d2593f44f532d27cbf65002452c2396dce5c (diff) | |
download | bcm5719-llvm-b1ffd99b6a262f674c4cf8ca81205f39baed6765.tar.gz bcm5719-llvm-b1ffd99b6a262f674c4cf8ca81205f39baed6765.zip |
[FileToMutable] Garbage collect unused private member
llvm-svn: 193588
-rw-r--r-- | lld/include/lld/ReaderWriter/Simple.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lld/include/lld/ReaderWriter/Simple.h b/lld/include/lld/ReaderWriter/Simple.h index 6baa4265a2b..8ca9fe11baa 100644 --- a/lld/include/lld/ReaderWriter/Simple.h +++ b/lld/include/lld/ReaderWriter/Simple.h @@ -72,19 +72,16 @@ protected: class FileToMutable : public SimpleFile { public: explicit FileToMutable(const LinkingContext &context, File &file) - : SimpleFile(context, file.path()), _file(file) { - for (auto definedAtom : _file.defined()) + : SimpleFile(context, file.path()) { + for (auto definedAtom : file.defined()) _definedAtoms._atoms.push_back(std::move(definedAtom)); - for (auto undefAtom : _file.undefined()) + for (auto undefAtom : file.undefined()) _undefinedAtoms._atoms.push_back(std::move(undefAtom)); - for (auto shlibAtom : _file.sharedLibrary()) + for (auto shlibAtom : file.sharedLibrary()) _sharedLibraryAtoms._atoms.push_back(std::move(shlibAtom)); - for (auto absAtom : _file.absolute()) + for (auto absAtom : file.absolute()) _absoluteAtoms._atoms.push_back(std::move(absAtom)); } - -private: - const File &_file; }; class SimpleReference : public Reference { |