diff options
author | Eric Beckmann <ecbeckmann@google.com> | 2017-06-16 21:13:24 +0000 |
---|---|---|
committer | Eric Beckmann <ecbeckmann@google.com> | 2017-06-16 21:13:24 +0000 |
commit | d135e8c039757a839ab5c4f75dd7ca2eb82ae9f3 (patch) | |
tree | e298ac6fafb4ac1feee45b296891a4f8f7762f76 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 6bc14c65ad3e237cfb034ed569358f40e3b45318 (diff) | |
download | llvm-d135e8c039757a839ab5c4f75dd7ca2eb82ae9f3.zip llvm-d135e8c039757a839ab5c4f75dd7ca2eb82ae9f3.tar.gz llvm-d135e8c039757a839ab5c4f75dd7ca2eb82ae9f3.tar.bz2 |
Switch external cvtres.exe for llvm's own resource library.
In this patch, I flip the switch in DriverUtils from using the external
cvtres.exe tool to using the Windows Resource library in llvm.
I also fixed a bug where .rsrc sections were marked as discardable
memory and therefore were placed in the wrong order in the final PE.
Furthermore, I modified WindowsResource to write the coff directly to a
memory buffer instead of to file, also had it use the machine types
already declared in COFF.h instead creating my own enum.
Finally, I flipped the switch to allow all unit tests that had
previously run only on windows due to a winres dependency to run
cross-platform.
Reviewers: zturner, ruiu
Subscribers: llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D34265
llvm-svn: 305592
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions