summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Program.h2
-rw-r--r--lib/System/Unix/Program.inc2
-rw-r--r--lib/System/Win32/Program.inc2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index f6fe794622..316585da99 100644
--- a/include/llvm/System/Program.h
+++ b/include/llvm/System/Program.h
@@ -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
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index ce757105f8..f5290b4075 100644
--- a/lib/System/Unix/Program.inc
+++ b/lib/System/Unix/Program.inc
@@ -38,7 +38,7 @@ Program::Program() : Data_(0) {}
Program::~Program() {}
-unsigned Program::GetPid() {
+unsigned Program::GetPid() const {
return reinterpret_cast<unsigned>(Data_);
}
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc
index b23fdce782..87f9e64e4c 100644
--- a/lib/System/Win32/Program.inc
+++ b/lib/System/Win32/Program.inc
@@ -35,7 +35,7 @@ Program::~Program() {
}
}
-unsigned Program::GetPid() {
+unsigned Program::GetPid() const {
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
return GetProcessId(hProcess);
}