[LLVM][SupportTests] Ask the OS how large the page size is instead of guessing.
authorMichael Spencer <bigcheesegs@gmail.com>
Wed, 15 Apr 2020 22:12:08 +0000 (15:12 -0700)
committerMichael Spencer <bigcheesegs@gmail.com>
Wed, 15 Apr 2020 22:12:28 +0000 (15:12 -0700)
commitbca47ef80e3ec61e5e83bb6d755eee68d4b8f925
tree829a462195c2a8bacc6ef564ca77514389c496fe
parentbee6c234ed28ae7349cb83afa322dfd8394590ee
[LLVM][SupportTests] Ask the OS how large the page size is instead of guessing.

PPC64 had a larger than expected page size. Instead of guessing just
use the same API that `MemoryBuffer` does to determine the page size.
llvm/unittests/Support/MemoryBufferTest.cpp