diff options
| author | Kostya Serebryany <kcc@google.com> | 2012-11-21 13:31:07 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2012-11-21 13:31:07 +0000 |
| commit | 8bc5421ba052f963cc8578295c80324ef0586d9c (patch) | |
| tree | cba7ad6bac847a05b75c70cc4fd28e9a77c74f10 /compiler-rt | |
| parent | 979a1e73529677230a9090ecc6caf7af8504da1b (diff) | |
| download | bcm5719-llvm-8bc5421ba052f963cc8578295c80324ef0586d9c.tar.gz bcm5719-llvm-8bc5421ba052f963cc8578295c80324ef0586d9c.zip | |
[asan] get rid of kPageSizeBits
llvm-svn: 168426
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index 6db4c170d86..d6af5f8f838 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -29,18 +29,15 @@ const uptr kWordSizeInBits = 8 * kWordSize; // We may want to use getpagesize() or sysconf(_SC_PAGESIZE) here rather than // hardcoding the values, but today these values need to be compile-time // constants. -const uptr kPageSizeBits = 16; -const uptr kPageSize = 1UL << kPageSizeBits; +const uptr kPageSize = 1UL << 16; const uptr kCacheLineSize = 128; const uptr kMmapGranularity = kPageSize; #elif !defined(_WIN32) -const uptr kPageSizeBits = 12; -const uptr kPageSize = 1UL << kPageSizeBits; +const uptr kPageSize = 1UL << 12; const uptr kCacheLineSize = 64; const uptr kMmapGranularity = kPageSize; #else -const uptr kPageSizeBits = 12; -const uptr kPageSize = 1UL << kPageSizeBits; +const uptr kPageSize = 1UL << 12; const uptr kCacheLineSize = 64; const uptr kMmapGranularity = 1UL << 16; #endif |

