summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-06-08 20:29:03 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-06-08 20:29:03 +0000
commit0c793018079803628b5aeee6bbc1e6464fbefd65 (patch)
tree743379e32168eaf3e32b72cc28f4a8f625da7a77 /include
parent1799921672835c49f6a29fc27d1840b7c36beabd (diff)
downloadllvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.gz
llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.bz2
llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.xz
sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Process.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/Process.h b/include/llvm/Support/Process.h
index 4256d4a03b..0baf7b911c 100644
--- a/include/llvm/Support/Process.h
+++ b/include/llvm/Support/Process.h
@@ -50,13 +50,13 @@ protected:
public:
/// \brief Operating system specific type to identify a process.
///
- /// Note that the windows one is defined to 'void *' as this is the
- /// documented type for HANDLE on windows, and we don't want to pull in the
+ /// Note that the windows one is defined to 'unsigned long' as this is the
+ /// documented type for DWORD on windows, and we don't want to pull in the
/// Windows headers here.
#if defined(LLVM_ON_UNIX)
typedef pid_t id_type;
#elif defined(LLVM_ON_WIN32)
- typedef void *id_type; // Must match the type of HANDLE.
+ typedef unsigned long id_type; // Must match the type of DWORD.
#else
#error Unsupported operating system.
#endif