mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 06:14:42 +00:00
Const-correctness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40e9b8e670
commit
c22675b542
@ -40,7 +40,7 @@ namespace sys {
|
||||
~Program();
|
||||
|
||||
/// Return process ID of this program.
|
||||
unsigned GetPid();
|
||||
unsigned GetPid() const;
|
||||
|
||||
/// This function executes the program using the \p arguments provided. The
|
||||
/// invoked program will inherit the stdin, stdout, and stderr file
|
||||
|
@ -38,7 +38,7 @@ Program::Program() : Data_(0) {}
|
||||
|
||||
Program::~Program() {}
|
||||
|
||||
unsigned Program::GetPid() {
|
||||
unsigned Program::GetPid() const {
|
||||
return reinterpret_cast<unsigned>(Data_);
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ Program::~Program() {
|
||||
}
|
||||
}
|
||||
|
||||
unsigned Program::GetPid() {
|
||||
unsigned Program::GetPid() const {
|
||||
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
|
||||
return GetProcessId(hProcess);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user