diff options
author | Kostya Serebryany <kcc@google.com> | 2012-11-23 15:38:49 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-11-23 15:38:49 +0000 |
commit | f67ec2b6e8d2ae328c27de0b026eea2d6667836e (patch) | |
tree | 0620adeec02b25bba4f0d4ebb8b63912640b528e /lib/sanitizer_common/sanitizer_win.cc | |
parent | 11e985f7e13fb41f55be82496dbfbf22e769ac4d (diff) | |
download | compiler-rt-f67ec2b6e8d2ae328c27de0b026eea2d6667836e.tar.gz compiler-rt-f67ec2b6e8d2ae328c27de0b026eea2d6667836e.tar.bz2 compiler-rt-f67ec2b6e8d2ae328c27de0b026eea2d6667836e.tar.xz |
[asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_win.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_win.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_win.cc b/lib/sanitizer_common/sanitizer_win.cc index 90bf35a4..31ae7f1e 100644 --- a/lib/sanitizer_common/sanitizer_win.cc +++ b/lib/sanitizer_common/sanitizer_win.cc @@ -23,6 +23,14 @@ namespace __sanitizer { // --------------------- sanitizer_common.h +uptr GetPageSize() { + return 1U << 14; // FIXME: is this configurable? +} + +uptr GetMmapGranularity() { + return 1U << 16; // FIXME: is this configurable? +} + bool FileExists(const char *filename) { UNIMPLEMENTED(); } |