summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Program.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-412/+0
| | | | llvm-svn: 120298
* Make FindProgramByName return paths with slashes unmodified on Windows.Mikhail Glushenkov2010-11-021-2/+4
| | | | | | This makes its behaviour more consistent across platforms. llvm-svn: 118048
* Make Program::Wait differentiate execution failure due to the fileDan Gohman2010-10-291-1/+2
| | | | | | being not found from the file being not executable. llvm-svn: 117664
* Move the declaration SetInformationJobObject() outside of namespace.NAKAMURA Takumi2010-09-171-9/+9
| | | | | | It is also workaround for PR7927. llvm-svn: 114175
* Properly quote the quotes :) during cmdline construction on Windows.Anton Korobeynikov2010-03-281-6/+28
| | | | | | | | | Otherwise, e.g. in the invocation like clang -DFOO=\"bar\" FOO macro got the bar value, not "bar". Patch by Alexander Esilevich! llvm-svn: 99763
* Add llvm::Program::ChangeStderrToBinary().Douglas Gregor2010-01-281-0/+5
| | | | llvm-svn: 94743
* Remove the GetProcessId() call from Win32/Program.inc, take 2.Mikhail Glushenkov2009-09-221-9/+23
| | | | | | | GetProcessId() was introduced only in Windows XP, and we want to support earlier versions. llvm-svn: 82548
* Revert "Get rid of GetProcessId in Win32/Program.inc.", this breaksDaniel Dunbar2009-09-221-17/+25
| | | | | | ExecuteAndWait. llvm-svn: 82522
* Get rid of GetProcessId in Win32/Program.inc.Mikhail Glushenkov2009-09-151-25/+17
| | | | | | | GetProcessId was introduced only in XP. As a bonus, this change makes Program objects copyable, since Program is now basically a PID. llvm-svn: 81826
* Check that the 'kill' call succeeded.Mikhail Glushenkov2009-09-091-1/+6
| | | | | | Thanks to Duncan Sands for spotting this. llvm-svn: 81328
* Const-correctness.Mikhail Glushenkov2009-09-081-1/+1
| | | | llvm-svn: 81249
* Get rid of the Pid_ member in the Program class.Mikhail Glushenkov2009-09-081-14/+18
| | | | llvm-svn: 81247
* Add a Kill() function to the Program class.Mikhail Glushenkov2009-09-081-9/+20
| | | | llvm-svn: 81246
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-4/+3
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* Fix a race condition in getting the process exit code on Win32.Daniel Dunbar2009-08-031-5/+21
| | | | llvm-svn: 77953
* Empty arguments need to be quoted on Win32.Daniel Dunbar2009-08-021-3/+9
| | | | llvm-svn: 77913
* Remove duplication in Program::Execute{And,No}Wait.Mikhail Glushenkov2009-07-181-189/+35
| | | | | | | Implemented by moving the code out of static functions into methods of Program class. llvm-svn: 76340
* Add an ExecuteNoWait interface to support asynchronous process spawning.David Greene2009-07-081-0/+165
| | | | llvm-svn: 75055
* Call CreateProcess with bInheritHandles = TRUE.Mikhail Glushenkov2009-04-141-1/+1
| | | | | | | | Makes llvmc show error messages printed by child processes when run from the Cygwin/MSYS shell. Since ExecuteAndWait does not return until the child program has finished execution, this change should be harmless. llvm-svn: 69082
* Delete trailing whitespace.Mikhail Glushenkov2009-04-141-13/+13
| | | | llvm-svn: 69081
* Fix the environment block that is passed to the CreateProcess function.Argyrios Kyrtzidis2008-06-151-1/+28
| | | | | | This bug made llvm-ld unable to function with "-native" option, since the process that was used to call 'gcc' was crashing. llvm-svn: 52284
* Fix redirection of stderr in sys::Program::ExecuteAndWait. There was logicMatthijs Kooijman2008-06-121-5/+8
| | | | | | | | | | | | | error that caused it to redirect stderr to stdout too often. This fix is applied identically to the win32 code as well, but that is untested. --Thi line, and those below, will be ignored-- M System/Unix/Program.inc M System/Win32/Program.inc llvm-svn: 52233
* Make I/O redirection handling in sys::Program a bit more consistent. NoMatthijs Kooijman2008-06-121-3/+5
| | | | | | | | | | | | | functional changes. Win32 code is untested, but should work fine. In the unix variant, rename RedirectFD to RedirectIO and let that function handle empty and null paths instead of doing that in the caller 3 times. This is the same as win32 already does it. In the win32 variant, use Path::isEmpty() instead of checking the resulting c_str() manually. This is the same as unix already does it. llvm-svn: 52230
* Fix potential buffer overflowAnton Korobeynikov2008-01-241-1/+1
| | | | llvm-svn: 46296
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Fix mingw32 buildAnton Korobeynikov2007-03-191-0/+1
| | | | llvm-svn: 35177
* Unbreak mingw32 buildAnton Korobeynikov2007-03-091-0/+8
| | | | llvm-svn: 35042
* Ensure 64-bit correctness.Jeff Cohen2007-03-051-1/+1
| | | | llvm-svn: 34923
* Implement memoryLimit on Windows.Jeff Cohen2007-03-051-6/+31
| | | | llvm-svn: 34922
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-0/+1
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* - Fixed broken Win32 buildAnton Korobeynikov2006-09-011-2/+2
| | | | | | - Removed warning about clobbered parameter in Bytecode/Reader llvm-svn: 30026
* For PR797:Reid Spencer2006-08-211-30/+44
| | | | | | | Remove all exception code from Program.inc and implement its new interface with an ErrMsg string argument. llvm-svn: 29790
* For PR787:Reid Spencer2006-06-071-0/+14
| | | | | | | | | | | | Provide new llvm::sys::Program facilities for converting the stdout and stdin to binary mode. There is no standard way to do this and the available mechanisms are platform specific. Adjust the bytecode reader and writer to use these methods when their input is stdin or output is stdout. THis avoids the problem with \n writing CRLF to a bytecode file on windows. Patch Contributed by Michael Smith. llvm-svn: 28722
* Fix VC++ breakageJeff Cohen2005-07-081-3/+3
| | | | llvm-svn: 22353
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-051-1/+0
| | | | llvm-svn: 21704
* Eliminate tabsJeff Cohen2005-04-111-1/+1
| | | | llvm-svn: 21216
* Fix silly mistake.Jeff Cohen2005-02-201-1/+1
| | | | llvm-svn: 20256
* Implement standard I/O redirection in ExecuteAndWait().Jeff Cohen2005-02-201-7/+73
| | | | llvm-svn: 20255
* Arg list already has program name in it.Jeff Cohen2005-02-161-15/+2
| | | | llvm-svn: 20208
* Rename Unix/*.cpp and Win32/*.cpp to have a *.inc suffix so that the sillyReid Spencer2005-01-091-0/+169
gdb debugger doesn't get confused on which file it is reading (the one in lib/System or the one in lib/System/{Win32,Unix}) llvm-svn: 19426
OpenPOWER on IntegriCloud