comparison unittests/Support/MemoryTest.cpp @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children 803732b1fca8
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
19 19
20 class MappedMemoryTest : public ::testing::TestWithParam<unsigned> { 20 class MappedMemoryTest : public ::testing::TestWithParam<unsigned> {
21 public: 21 public:
22 MappedMemoryTest() { 22 MappedMemoryTest() {
23 Flags = GetParam(); 23 Flags = GetParam();
24 PageSize = sys::process::get_self()->page_size(); 24 PageSize = sys::Process::getPageSize();
25 } 25 }
26 26
27 protected: 27 protected:
28 // Adds RW flags to permit testing of the resulting memory 28 // Adds RW flags to permit testing of the resulting memory
29 unsigned getTestableEquivalent(unsigned RequestedFlags) { 29 unsigned getTestableEquivalent(unsigned RequestedFlags) {