forked from OSchip/llvm-project
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:
parent
e1c19c4c6e
commit
c0e9bee781
|
@ -1004,6 +1004,8 @@ void BinaryWriter::write() {
|
||||||
continue;
|
continue;
|
||||||
Section.accept(*SecWriter);
|
Section.accept(*SecWriter);
|
||||||
}
|
}
|
||||||
|
if (auto E = BufPtr->commit())
|
||||||
|
reportError(File, errorToErrorCode(std::move(E)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BinaryWriter::finalize() {
|
void BinaryWriter::finalize() {
|
||||||
|
|
Loading…
Reference in New Issue