[FileToMutable] Garbage collect unused private member

llvm-svn: 193588
This commit is contained in:
Shankar Easwaran 2013-10-29 05:33:52 +00:00
parent a687d2593f
commit b1ffd99b6a
1 changed files with 5 additions and 8 deletions

View File

@ -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 {