Flesh out a page size accessor in the new API.

Implement the old API in terms of the new one. This simplifies the
implementation on Windows which can now re-use the self_process's once
initialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth
2012-12-31 23:23:35 +00:00
parent 02d75477cd
commit 814afe91cc
5 changed files with 43 additions and 12 deletions
+8
View File
@@ -55,6 +55,14 @@ self_process::~self_process() {
#endif
//===----------------------------------------------------------------------===//
// Implementations of legacy functions in terms of the new self_process object.
unsigned Process::GetPageSize() {
return process::get_self()->page_size();
}
// Include the platform-specific parts of this class.
#ifdef LLVM_ON_UNIX
#include "Unix/Process.inc"