forked from OSchip/llvm-project
[lld-macho] Another attempt at fixing 32-bit builds
This commit is contained in:
parent
c04e1c8b66
commit
bd115d0991
|
@ -71,10 +71,10 @@ public:
|
|||
uint32_t cpuSubtype;
|
||||
|
||||
uint64_t pageZeroSize;
|
||||
uint64_t stubSize;
|
||||
uint64_t stubHelperHeaderSize;
|
||||
uint64_t stubHelperEntrySize;
|
||||
uint64_t wordSize;
|
||||
size_t stubSize;
|
||||
size_t stubHelperHeaderSize;
|
||||
size_t stubHelperEntrySize;
|
||||
size_t wordSize;
|
||||
};
|
||||
|
||||
TargetInfo *createX86_64TargetInfo();
|
||||
|
@ -90,7 +90,7 @@ struct LP64 {
|
|||
static constexpr uint32_t segmentLCType = llvm::MachO::LC_SEGMENT_64;
|
||||
|
||||
static constexpr uint64_t pageZeroSize = 1ull << 32;
|
||||
static constexpr uint64_t wordSize = 8;
|
||||
static constexpr size_t wordSize = 8;
|
||||
};
|
||||
|
||||
struct ILP32 {
|
||||
|
@ -103,7 +103,7 @@ struct ILP32 {
|
|||
static constexpr uint32_t segmentLCType = llvm::MachO::LC_SEGMENT;
|
||||
|
||||
static constexpr uint64_t pageZeroSize = 1ull << 12;
|
||||
static constexpr uint64_t wordSize = 4;
|
||||
static constexpr size_t wordSize = 4;
|
||||
};
|
||||
|
||||
extern TargetInfo *target;
|
||||
|
|
Loading…
Reference in New Issue