[lld] bd115d0 - [lld-macho] Another attempt at fixing 32-bit builds
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 3 08:58:42 PDT 2021
Author: Jez Ng
Date: 2021-04-03T11:58:23-04:00
New Revision: bd115d0991a27855a78122111ec69ada44f7cb34
URL: https://github.com/llvm/llvm-project/commit/bd115d0991a27855a78122111ec69ada44f7cb34
DIFF: https://github.com/llvm/llvm-project/commit/bd115d0991a27855a78122111ec69ada44f7cb34.diff
LOG: [lld-macho] Another attempt at fixing 32-bit builds
Added:
Modified:
lld/MachO/Target.h
Removed:
################################################################################
diff --git a/lld/MachO/Target.h b/lld/MachO/Target.h
index ca71105d01e6..ac9c55659893 100644
--- a/lld/MachO/Target.h
+++ b/lld/MachO/Target.h
@@ -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();
@@ -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;
More information about the llvm-commits
mailing list