llvm.org GIT mirror llvm / b9f4c51
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307227 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Beckmann 2 years ago
3 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4242 #include
4343
4444 namespace llvm {
45
4546 namespace object {
4647
4748 class WindowsResource;
49
50 enum class Machine { UNKNOWN, ARM, X64, X86 };
4851
4952 class ResourceEntryRef {
5053 public:
349349 : MachineType(MachineType), Resources(Parser.getTree()),
350350 Data(Parser.getData()), StringTable(Parser.getStringTable()) {
351351 performFileLayout();
352
353352 OutputBuffer = MemoryBuffer::getNewMemBuffer(FileSize);
354353 }
355354
206206 std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(),
207207 FileBuffer->getBufferStart());
208208 error(FileBuffer->commit());
209
210209 if (Verbose) {
211210 Expected> BinaryOrErr = createBinary(OutputFile);
212211 if (!BinaryOrErr)