Reland "[llvm-objcopy] Refactor llvm-objcopy to use reader and writer objects"

Added line to output the proper files in the output to binary case.

llvm-svn: 323489
This commit is contained in:
Jake Ehrlich 2018-01-26 01:17:35 +00:00
parent f2df36f3f1
commit 8f15218062

View File

@ -1004,6 +1004,8 @@ void BinaryWriter::write() {
continue;
Section.accept(*SecWriter);
}
if (auto E = BufPtr->commit())
reportError(File, errorToErrorCode(std::move(E)));
}
void BinaryWriter::finalize() {