diff options
Diffstat (limited to 'lib/Support/Windows/Process.inc')
-rw-r--r-- | lib/Support/Windows/Process.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc index 89dbf2378d..fc24ceaf07 100644 --- a/lib/Support/Windows/Process.inc +++ b/lib/Support/Windows/Process.inc @@ -38,6 +38,12 @@ namespace llvm { using namespace sys; + +process::id_type self_process::get_id() { + return GetCurrentProcess(); +} + + // This function retrieves the page size using GetSystemInfo and is present // solely so it can be called once in Process::GetPageSize to initialize the // static variable PageSize. |