File indexing completed on 2026-05-10 08:44:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef LLVM_OBJECT_COFFMODULEDEFINITION_H
0019 #define LLVM_OBJECT_COFFMODULEDEFINITION_H
0020
0021 #include "llvm/BinaryFormat/COFF.h"
0022 #include "llvm/Object/COFFImportFile.h"
0023
0024 namespace llvm {
0025 namespace object {
0026
0027 struct COFFModuleDefinition {
0028 std::vector<COFFShortExport> Exports;
0029 std::string OutputFile;
0030 std::string ImportName;
0031 uint64_t ImageBase = 0;
0032 uint64_t StackReserve = 0;
0033 uint64_t StackCommit = 0;
0034 uint64_t HeapReserve = 0;
0035 uint64_t HeapCommit = 0;
0036 uint32_t MajorImageVersion = 0;
0037 uint32_t MinorImageVersion = 0;
0038 uint32_t MajorOSVersion = 0;
0039 uint32_t MinorOSVersion = 0;
0040 };
0041
0042 Expected<COFFModuleDefinition>
0043 parseCOFFModuleDefinition(MemoryBufferRef MB, COFF::MachineTypes Machine,
0044 bool MingwDef = false, bool AddUnderscores = true);
0045
0046 }
0047 }
0048
0049 #endif