diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:10 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:10 +0000 | 
| commit | 93c91e39b29142dec1d03a30df9f6e757f56c193 (patch) | |
| tree | 33a9b014a327e64450b3c9ed46d8c5bdb78ad345 /include/llvm/Object/COFFModuleDefinition.h | |
| parent | ca089b24d48ef6fa8da2d0bb8c25bb802c4a95c0 (diff) | |
Notes
Diffstat (limited to 'include/llvm/Object/COFFModuleDefinition.h')
| -rw-r--r-- | include/llvm/Object/COFFModuleDefinition.h | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/include/llvm/Object/COFFModuleDefinition.h b/include/llvm/Object/COFFModuleDefinition.h index a0e8eacdb7a3a..be139a2833b0b 100644 --- a/include/llvm/Object/COFFModuleDefinition.h +++ b/include/llvm/Object/COFFModuleDefinition.h @@ -16,7 +16,6 @@  //  //===----------------------------------------------------------------------===// -  #ifndef LLVM_OBJECT_COFF_MODULE_DEFINITION_H  #define LLVM_OBJECT_COFF_MODULE_DEFINITION_H @@ -29,6 +28,7 @@ namespace object {  struct COFFModuleDefinition {    std::vector<COFFShortExport> Exports;    std::string OutputFile; +  std::string ImportName;    uint64_t ImageBase = 0;    uint64_t StackReserve = 0;    uint64_t StackCommit = 0; @@ -40,8 +40,12 @@ struct COFFModuleDefinition {    uint32_t MinorOSVersion = 0;  }; +// mingw and wine def files do not mangle _ for x86 which +// is a consequence of legacy binutils' dlltool functionality. +// This MingwDef flag should be removed once mingw stops this pratice.  Expected<COFFModuleDefinition> -parseCOFFModuleDefinition(MemoryBufferRef MB, COFF::MachineTypes Machine); +parseCOFFModuleDefinition(MemoryBufferRef MB, COFF::MachineTypes Machine, +                          bool MingwDef = false);  } // End namespace object.  } // End namespace llvm. | 
