diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-06-19 19:43:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-06-19 19:43:43 +0000 |
commit | 25ddcb4c27fb17a2173cf43159952900a72b3ac4 (patch) | |
tree | 0948b5742008583ee84126e12d101af81113e3c9 /lld/lib/ReaderWriter/MachO/LayoutPass.cpp | |
parent | 512c682984e8cfdee9a9e9cdeaebf941cdb5a140 (diff) | |
download | bcm5719-llvm-25ddcb4c27fb17a2173cf43159952900a72b3ac4.tar.gz bcm5719-llvm-25ddcb4c27fb17a2173cf43159952900a72b3ac4.zip |
Simplify Pass::perform to take a SimpleFile& instead of unique_ptr<SimpleFile>&
None of the implementations replace the SimpleFile with some other file,
they just modify the SimpleFile in-place, so a direct reference to the
file is sufficient.
llvm-svn: 240167
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/LayoutPass.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp index c523470c191..071a0dc3d9a 100644 --- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp +++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp @@ -437,10 +437,10 @@ void LayoutPass::undecorate(SimpleFile::DefinedAtomRange &atomRange, } /// Perform the actual pass -std::error_code LayoutPass::perform(std::unique_ptr<SimpleFile> &mergedFile) { +std::error_code LayoutPass::perform(SimpleFile &mergedFile) { // sort the atoms ScopedTask task(getDefaultDomain(), "LayoutPass"); - SimpleFile::DefinedAtomRange atomRange = mergedFile->definedAtoms(); + SimpleFile::DefinedAtomRange atomRange = mergedFile.definedAtoms(); // Build follow on tables buildFollowOnTable(atomRange); |