#include "llvm/Support/Process.h"
#include "llvm/Support/ErrorHandling.h"
-namespace llvm {
+using namespace llvm;
using namespace sys;
//===----------------------------------------------------------------------===//
// instance should live until the process terminates to avoid the potential for
// racy accesses during shutdown.
self_process::~self_process() {
- assert(TempDirectory->exists() && "Who has removed TempDirectory?");
llvm_unreachable("This destructor must never be executed!");
}
#pragma warning(pop)
#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"