aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-31 23:38:28 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-31 23:38:28 +0000
commit2bbe46647555cdd05fe0db5f1dd2839330a647b2 (patch)
tree4e080e23b91d6e13eb344483738bf82a2b49283b
parentf5867ab7178784bc63a3deafcf4fb09260e4d19a (diff)
downloadexternal_llvm-2bbe46647555cdd05fe0db5f1dd2839330a647b2.zip
external_llvm-2bbe46647555cdd05fe0db5f1dd2839330a647b2.tar.gz
external_llvm-2bbe46647555cdd05fe0db5f1dd2839330a647b2.tar.bz2
Remove an unused method on the Program class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171332 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/Program.h3
-rw-r--r--lib/Support/Unix/Program.inc5
-rw-r--r--lib/Support/Windows/Program.inc5
3 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h
index 7c9a951..42efdb3 100644
--- a/include/llvm/Support/Program.h
+++ b/include/llvm/Support/Program.h
@@ -44,9 +44,6 @@ namespace sys {
Program();
~Program();
- /// Return process ID of this program.
- unsigned GetPid() const;
-
/// This function executes the program using the \p arguments provided. The
/// invoked program will inherit the stdin, stdout, and stderr file
/// descriptors, the environment and other configuration settings of the
diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc
index bd75046..aac5241 100644
--- a/lib/Support/Unix/Program.inc
+++ b/lib/Support/Unix/Program.inc
@@ -47,11 +47,6 @@ Program::Program() : Data_(0) {}
Program::~Program() {}
-unsigned Program::GetPid() const {
- uint64_t pid = reinterpret_cast<uint64_t>(Data_);
- return static_cast<unsigned>(pid);
-}
-
// This function just uses the PATH environment variable to find the program.
Path
Program::FindProgramByName(const std::string& progName) {
diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc
index b546080..dc214b8 100644
--- a/lib/Support/Windows/Program.inc
+++ b/lib/Support/Windows/Program.inc
@@ -43,11 +43,6 @@ Program::~Program() {
}
}
-unsigned Program::GetPid() const {
- Win32ProcessInfo* wpi = reinterpret_cast<Win32ProcessInfo*>(Data_);
- return wpi->dwProcessId;
-}
-
// This function just uses the PATH environment variable to find the program.
Path
Program::FindProgramByName(const std::string& progName) {