diff options
| author | Will Schmidt <will_schmidt@vnet.ibm.com> | 2014-11-06 14:58:06 +0000 |
|---|---|---|
| committer | Will Schmidt <will_schmidt@vnet.ibm.com> | 2014-11-06 14:58:06 +0000 |
| commit | ae4236ac6aca3020c5ffdbce5d2b1d9ef3597d53 (patch) | |
| tree | 05ae8b0a1cab9f91d7dff36620a1461c425eb68b /compiler-rt/lib/asan/asan_mapping.h | |
| parent | 26cfbea73872e0553a8449bfb14e12102414185e (diff) | |
| download | bcm5719-llvm-ae4236ac6aca3020c5ffdbce5d2b1d9ef3597d53.tar.gz bcm5719-llvm-ae4236ac6aca3020c5ffdbce5d2b1d9ef3597d53.zip | |
Use GET_CURRENT_FRAME() to calculate the memory layout for power. This works
for both PPC64 Big and Little endian modes, so also eliminates the need for
the BIG_ENDIAN/LITTLE_ENDIAN #ifdeffery.
By trial and error, it also looks like the kPPC64_ShadowOffset64 value is
valid using (1ULL << 41) for both BE and LE, so that #if/#elif/#endif block
has also been simplified.
Differential Revision: http://reviews.llvm.org/D6044
llvm-svn: 221457
Diffstat (limited to 'compiler-rt/lib/asan/asan_mapping.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_mapping.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler-rt/lib/asan/asan_mapping.h b/compiler-rt/lib/asan/asan_mapping.h index c08af847f04..5abb36fd39a 100644 --- a/compiler-rt/lib/asan/asan_mapping.h +++ b/compiler-rt/lib/asan/asan_mapping.h @@ -87,11 +87,7 @@ static const u64 kDefaultShadowOffset64 = 1ULL << 44; static const u64 kDefaultShort64bitShadowOffset = 0x7FFF8000; // < 2G. static const u64 kAArch64_ShadowOffset64 = 1ULL << 36; static const u64 kMIPS32_ShadowOffset32 = 0x0aaa0000; -#if defined(__powerpc64__) && defined(__BIG_ENDIAN__) static const u64 kPPC64_ShadowOffset64 = 1ULL << 41; -#elif defined(__powerpc64__) && defined(__LITTLE_ENDIAN__) -static const u64 kPPC64_ShadowOffset64 = 1ULL << 43; -#endif static const u64 kFreeBSD_ShadowOffset32 = 1ULL << 30; // 0x40000000 static const u64 kFreeBSD_ShadowOffset64 = 1ULL << 46; // 0x400000000000 |

