summaryrefslogtreecommitdiff
path: root/lib/Support/Windows
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
commita0d8f28a9cbebfd3ddb32dfe3e0a286ede1678c5 (patch)
treecf7555f09136f2b8987361c40bb8b5ee4cb17812 /lib/Support/Windows
parent2bbe46647555cdd05fe0db5f1dd2839330a647b2 (diff)
downloadllvm-a0d8f28a9cbebfd3ddb32dfe3e0a286ede1678c5.tar.gz
llvm-a0d8f28a9cbebfd3ddb32dfe3e0a286ede1678c5.tar.bz2
llvm-a0d8f28a9cbebfd3ddb32dfe3e0a286ede1678c5.tar.xz
Remove an unused method on Program.
I'm simplifying this interface as much as I can before merging it with the new process interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r--lib/Support/Windows/Program.inc17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc
index dc214b82c0..691d6d4555 100644
--- a/lib/Support/Windows/Program.inc
+++ b/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)