forked from OSchip/llvm-project
[FileToMutable] Garbage collect unused private member
llvm-svn: 193588
This commit is contained in:
parent
a687d2593f
commit
b1ffd99b6a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue