[llvm] r323489 - Reland "[llvm-objcopy] Refactor llvm-objcopy to use reader and writer objects"
Jake Ehrlich via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 17:17:35 PST 2018
Author: jakehehrlich
Date: Thu Jan 25 17:17:35 2018
New Revision: 323489
URL: http://llvm.org/viewvc/llvm-project?rev=323489&view=rev
Log:
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.
Modified:
llvm/trunk/tools/llvm-objcopy/Object.cpp
Modified: llvm/trunk/tools/llvm-objcopy/Object.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/Object.cpp?rev=323489&r1=323488&r2=323489&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/Object.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/Object.cpp Thu Jan 25 17:17:35 2018
@@ -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() {
More information about the llvm-commits
mailing list