summaryrefslogtreecommitdiff
path: root/src/AddressSpace.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/AddressSpace.hpp')
-rw-r--r--src/AddressSpace.hpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/AddressSpace.hpp b/src/AddressSpace.hpp
index a71ed11..f7cb767 100644
--- a/src/AddressSpace.hpp
+++ b/src/AddressSpace.hpp
@@ -142,13 +142,8 @@ struct UnwindInfoSections {
/// making local unwinds fast.
class __attribute__((visibility("hidden"))) LocalAddressSpace {
public:
-#ifdef __LP64__
- typedef uint64_t pint_t;
- typedef int64_t sint_t;
-#else
- typedef uint32_t pint_t;
- typedef int32_t sint_t;
-#endif
+ typedef uintptr_t pint_t;
+ typedef intptr_t sint_t;
uint8_t get8(pint_t addr) {
uint8_t val;
memcpy(&val, (void *)addr, sizeof(val));
@@ -194,7 +189,7 @@ public:
};
inline uintptr_t LocalAddressSpace::getP(pint_t addr) {
-#ifdef __LP64__
+#if __SIZEOF_POINTER__ == 8
return get64(addr);
#else
return get32(addr);