Skip to content

Commit

Permalink
[lld-macho] Another attempt at fixing 32-bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
int3 committed Apr 3, 2021
1 parent c04e1c8 commit bd115d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lld/MachO/Target.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ class TargetInfo {
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();
Expand All @@ -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 {
Expand All @@ -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;
Expand Down

0 comments on commit bd115d0

Please sign in to comment.