Use GET_CURRENT_FRAME() to calculate the memory layout for power. This works
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 6 Nov 2014 14:58:06 +0000 (14:58 +0000)
committerWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 6 Nov 2014 14:58:06 +0000 (14:58 +0000)
commitae4236ac6aca3020c5ffdbce5d2b1d9ef3597d53
tree05ae8b0a1cab9f91d7dff36620a1461c425eb68b
parent26cfbea73872e0553a8449bfb14e12102414185e
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
compiler-rt/lib/asan/asan_mapping.h
compiler-rt/lib/sanitizer_common/sanitizer_posix.cc
compiler-rt/test/asan/TestCases/debug_ppc64_mapping.cc [new file with mode: 0644]