diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-09-08 19:51:39 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-09-08 19:51:39 +0000 |
| commit | 29b5d3012be0318b520958a3d33064f106c659f2 (patch) | |
| tree | 41ffe4223a8df0ea1b4a6f4a672ce5a4f8ec3aae /llvm/lib/System | |
| parent | 28471eee1d41ec8480f8f6b1068b4ca5646e0d71 (diff) | |
| download | bcm5719-llvm-29b5d3012be0318b520958a3d33064f106c659f2.tar.gz bcm5719-llvm-29b5d3012be0318b520958a3d33064f106c659f2.zip | |
Const-correctness.
llvm-svn: 81249
Diffstat (limited to 'llvm/lib/System')
| -rw-r--r-- | llvm/lib/System/Unix/Program.inc | 2 | ||||
| -rw-r--r-- | llvm/lib/System/Win32/Program.inc | 2 |
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); } |

