[sanitizer] Don't include <linux/user.h> in sanitizer_stoptheworld_linux_libcdep...
authorMaxim Ostapenko <chefmax7@gmail.com>
Tue, 18 Apr 2017 07:22:26 +0000 (07:22 +0000)
committerMaxim Ostapenko <chefmax7@gmail.com>
Tue, 18 Apr 2017 07:22:26 +0000 (07:22 +0000)
commit35460601902dcd75b79e4be9e13a5feff6610682
tree7d36915c34308ec1f006351a49ecb26804d9449f
parent133a72069ed6a65a9f4589b00171418342e2bba9
[sanitizer] Don't include <linux/user.h> in sanitizer_stoptheworld_linux_libcdep.cc on ARM Android

Turned out that adding defined(_arm_) in sanitizer_stoptheworld_linux_libcdep.cc breaks android arm with some toolchains.

.../llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:36:11: fatal error:
      'linux/user.h' file not found
# include <linux/user.h>  // for pt_regs
          ^
1 error generated.

Context:
#if SANITIZER_ANDROID && defined(__arm__)
# include <linux/user.h>  // for pt_regs
#else

This patch removes corresponding #if SANITIZER_ANDROID && defined(__arm__) and a bit rearranges adjacent сode.

Differential Revision: https://reviews.llvm.org/D32128

llvm-svn: 300531
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc