summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Program.inc
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-31 23:44:47 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-31 23:44:47 +0000
commit76fbeef95a55df4d1977b7d1d72b0bc482ec336d (patch)
treeb8b67455c98853a413f4c5bbb917485ddb8236f9 /llvm/lib/Support/Unix/Program.inc
parentdb8842f9f351297c3f666bc5f88f5ee80e39fb70 (diff)
downloadbcm5719-llvm-76fbeef95a55df4d1977b7d1d72b0bc482ec336d.tar.gz
bcm5719-llvm-76fbeef95a55df4d1977b7d1d72b0bc482ec336d.zip
Remove an unused method on Program.
I'm simplifying this interface as much as I can before merging it with the new process interface. llvm-svn: 171334
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r--llvm/lib/Support/Unix/Program.inc18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index aac52414f11..c384316e209 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -389,24 +389,6 @@ Program::Wait(const sys::Path &path,
#endif
}
-bool
-Program::Kill(std::string* ErrMsg) {
- if (Data_ == 0) {
- MakeErrMsg(ErrMsg, "Process not started!");
- return true;
- }
-
- uint64_t pid64 = reinterpret_cast<uint64_t>(Data_);
- pid_t pid = static_cast<pid_t>(pid64);
-
- if (kill(pid, SIGKILL) != 0) {
- MakeErrMsg(ErrMsg, "The process couldn't be killed!");
- return true;
- }
-
- return false;
-}
-
error_code Program::ChangeStdinToBinary(){
// Do nothing, as Unix doesn't differentiate between text and binary.
return make_error_code(errc::success);
OpenPOWER on IntegriCloud