Flesh out a page size accessor in the new API.
[oota-llvm.git] / lib / Support / Process.cpp
index 1e21d64e601f43cc85da8fa054faad2ef7d7a7b5..9d87b7744b8cebd92eb54cf41c3326c67e262ae2 100644 (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"