[lld] r193588 - [FileToMutable] Garbage collect unused private member
Shankar Easwaran
shankare at codeaurora.org
Mon Oct 28 22:33:52 PDT 2013
Author: shankare
Date: Tue Oct 29 00:33:52 2013
New Revision: 193588
URL: http://llvm.org/viewvc/llvm-project?rev=193588&view=rev
Log:
[FileToMutable] Garbage collect unused private member
Modified:
lld/trunk/include/lld/ReaderWriter/Simple.h
Modified: lld/trunk/include/lld/ReaderWriter/Simple.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/Simple.h?rev=193588&r1=193587&r2=193588&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/Simple.h (original)
+++ lld/trunk/include/lld/ReaderWriter/Simple.h Tue Oct 29 00:33:52 2013
@@ -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 {
More information about the llvm-commits
mailing list