diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-04-06 20:43:35 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-04-06 20:43:35 +0000 |
commit | c437888f5af7ab582bfb10a2159c06e07b7cbe57 (patch) | |
tree | 977538c7460e83e17e0c3ab2a7007d2c1384f188 /lld/lib/ReaderWriter/MachO/WriterMachO.cpp | |
parent | 230d2ec75f0f2431828beda6ed2d8b036215db6d (diff) | |
download | bcm5719-llvm-c437888f5af7ab582bfb10a2159c06e07b7cbe57.tar.gz bcm5719-llvm-c437888f5af7ab582bfb10a2159c06e07b7cbe57.zip |
Replace the `createImplicitFiles` method return type with `void`
All instances of the `createImplicitFiles` always return `true` and this
return value is used nowhere.
llvm-svn: 234205
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/WriterMachO.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/WriterMachO.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/MachO/WriterMachO.cpp b/lld/lib/ReaderWriter/MachO/WriterMachO.cpp index de1c0e38063..35dce8fbaf2 100644 --- a/lld/lib/ReaderWriter/MachO/WriterMachO.cpp +++ b/lld/lib/ReaderWriter/MachO/WriterMachO.cpp @@ -45,7 +45,7 @@ public: return writeBinary(*nFile->get(), path); } - bool createImplicitFiles(std::vector<std::unique_ptr<File> > &r) override { + void createImplicitFiles(std::vector<std::unique_ptr<File>> &r) override { // When building main executables, add _main as required entry point. if (_context.outputTypeHasEntry()) r.emplace_back(new CEntryFile(_context)); @@ -55,8 +55,6 @@ public: // Final linked images can access a symbol for their mach_header. if (_context.outputMachOType() != llvm::MachO::MH_OBJECT) r.emplace_back(new MachHeaderAliasFile(_context)); - - return true; } private: const MachOLinkingContext &_context; |