[llvm-commits] [llvm] r81249 - in /llvm/trunk: include/llvm/System/Program.h lib/System/Unix/Program.inc lib/System/Win32/Program.inc
Mikhail Glushenkov
foldr at codedgers.com
Tue Sep 8 12:51:40 PDT 2009
Author: foldr
Date: Tue Sep 8 14:51:39 2009
New Revision: 81249
URL: http://llvm.org/viewvc/llvm-project?rev=81249&view=rev
Log:
Const-correctness.
Modified:
llvm/trunk/include/llvm/System/Program.h
llvm/trunk/lib/System/Unix/Program.inc
llvm/trunk/lib/System/Win32/Program.inc
Modified: llvm/trunk/include/llvm/System/Program.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Program.h?rev=81249&r1=81248&r2=81249&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/Program.h (original)
+++ llvm/trunk/include/llvm/System/Program.h Tue Sep 8 14:51:39 2009
@@ -40,7 +40,7 @@
~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
Modified: llvm/trunk/lib/System/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Program.inc?rev=81249&r1=81248&r2=81249&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Program.inc (original)
+++ llvm/trunk/lib/System/Unix/Program.inc Tue Sep 8 14:51:39 2009
@@ -38,7 +38,7 @@
Program::~Program() {}
-unsigned Program::GetPid() {
+unsigned Program::GetPid() const {
return reinterpret_cast<unsigned>(Data_);
}
Modified: llvm/trunk/lib/System/Win32/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Program.inc?rev=81249&r1=81248&r2=81249&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Program.inc (original)
+++ llvm/trunk/lib/System/Win32/Program.inc Tue Sep 8 14:51:39 2009
@@ -35,7 +35,7 @@
}
}
-unsigned Program::GetPid() {
+unsigned Program::GetPid() const {
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
return GetProcessId(hProcess);
}
More information about the llvm-commits
mailing list