aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Windows/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/Windows/Program.inc
parentdb8842f9f351297c3f666bc5f88f5ee80e39fb70 (diff)
downloadllvm-76fbeef95a55df4d1977b7d1d72b0bc482ec336d.zip
llvm-76fbeef95a55df4d1977b7d1d72b0bc482ec336d.tar.gz
llvm-76fbeef95a55df4d1977b7d1d72b0bc482ec336d.tar.bz2
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/Windows/Program.inc')
-rw-r--r--llvm/lib/Support/Windows/Program.inc17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc
index dc214b8..691d6d4 100644
--- a/llvm/lib/Support/Windows/Program.inc
+++ b/llvm/lib/Support/Windows/Program.inc
@@ -375,23 +375,6 @@ Program::Wait(const Path &path,
return 1;
}
-bool
-Program::Kill(std::string* ErrMsg) {
- if (Data_ == 0) {
- MakeErrMsg(ErrMsg, "Process not started!");
- return true;
- }
-
- Win32ProcessInfo* wpi = reinterpret_cast<Win32ProcessInfo*>(Data_);
- HANDLE hProcess = wpi->hProcess;
- if (TerminateProcess(hProcess, 1) == 0) {
- MakeErrMsg(ErrMsg, "The process couldn't be killed!");
- return true;
- }
-
- return false;
-}
-
error_code Program::ChangeStdinToBinary(){
int result = _setmode( _fileno(stdin), _O_BINARY );
if (result == -1)