summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-09-08 19:51:39 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-09-08 19:51:39 +0000
commit29b5d3012be0318b520958a3d33064f106c659f2 (patch)
tree41ffe4223a8df0ea1b4a6f4a672ce5a4f8ec3aae /llvm/lib
parent28471eee1d41ec8480f8f6b1068b4ca5646e0d71 (diff)
downloadbcm5719-llvm-29b5d3012be0318b520958a3d33064f106c659f2.tar.gz
bcm5719-llvm-29b5d3012be0318b520958a3d33064f106c659f2.zip
Const-correctness.
llvm-svn: 81249
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Unix/Program.inc2
-rw-r--r--llvm/lib/System/Win32/Program.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index ce757105f88..f5290b4075c 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/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/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc
index b23fdce7825..87f9e64e4c5 100644
--- a/llvm/lib/System/Win32/Program.inc
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud