diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-31 23:38:28 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-31 23:38:28 +0000 |
commit | db8842f9f351297c3f666bc5f88f5ee80e39fb70 (patch) | |
tree | 1f6aa32d9b55c8692cb3f20d6107b299d88c3c0b /llvm | |
parent | acd64becb15c5105fae0875575d14858fb106cb1 (diff) | |
download | bcm5719-llvm-db8842f9f351297c3f666bc5f88f5ee80e39fb70.tar.gz bcm5719-llvm-db8842f9f351297c3f666bc5f88f5ee80e39fb70.zip |
Remove an unused method on the Program class.
llvm-svn: 171332
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/Program.h | 3 | ||||
-rw-r--r-- | llvm/lib/Support/Unix/Program.inc | 5 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/Program.inc | 5 |
3 files changed, 0 insertions, 13 deletions
diff --git a/llvm/include/llvm/Support/Program.h b/llvm/include/llvm/Support/Program.h index 7c9a9510315..42efdb36bdc 100644 --- a/llvm/include/llvm/Support/Program.h +++ b/llvm/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/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc index bd75046aa9a..aac52414f11 100644 --- a/llvm/lib/Support/Unix/Program.inc +++ b/llvm/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/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc index b54608093b1..dc214b82c07 100644 --- a/llvm/lib/Support/Windows/Program.inc +++ b/llvm/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) { |