mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Revert "Revert "Revert "Switch external cvtres.exe for llvm's own resource library."""
This reverts commit ae21ee0b6cacbc1efaf4d42502e71da2f0eb45c3. The initial revert was done in order to prevent ongoing errors on chromium bots such as CrWinClangLLD. However, this was done haphazardly and I didn't realize there were test and compilation failures, so this revert was reverted. Now that those have been fixed, we can revert the revert of the revert. llvm-svn: 307227
This commit is contained in:
parent
3e556b72ef
commit
2c6a26f068
@ -43,10 +43,13 @@
|
||||
#include <map>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
namespace object {
|
||||
|
||||
class WindowsResource;
|
||||
|
||||
enum class Machine { UNKNOWN, ARM, X64, X86 };
|
||||
|
||||
class ResourceEntryRef {
|
||||
public:
|
||||
Error moveNext(bool &End);
|
||||
|
@ -350,7 +350,6 @@ WindowsResourceCOFFWriter::WindowsResourceCOFFWriter(
|
||||
: MachineType(MachineType), Resources(Parser.getTree()),
|
||||
Data(Parser.getData()), StringTable(Parser.getStringTable()) {
|
||||
performFileLayout();
|
||||
|
||||
OutputBuffer = MemoryBuffer::getNewMemBuffer(FileSize);
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,6 @@ int main(int argc_, const char *argv_[]) {
|
||||
std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(),
|
||||
FileBuffer->getBufferStart());
|
||||
error(FileBuffer->commit());
|
||||
|
||||
if (Verbose) {
|
||||
Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(OutputFile);
|
||||
if (!BinaryOrErr)
|
||||
|
Loading…
Reference in New Issue
Block a user