summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Program.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace use of PathV1.h in Program.cpp.Rafael Espindola2013-06-141-30/+2
| | | | llvm-svn: 183996
* Avoid using PathV1.h in Program.h.Rafael Espindola2013-06-131-20/+25
| | | | llvm-svn: 183940
* Add a version of sys::ExecuteAndWait that takes StringRefs.Rafael Espindola2013-06-131-0/+23
| | | | llvm-svn: 183934
* [Support] Fix handle and memory leak for processes that are not waited forReid Kleckner2013-06-131-4/+3
| | | | | | | | | | | | Execute's Data parameter is now optional, so we won't allocate memory for it on Windows and we'll close the process handle. The Unix code should probably do something similar to avoid accumulation of zombie children that haven't been waited on. Tested on Linux and Windows. llvm-svn: 183906
* Zero-initializing variables; fixes a build breakage introduced in r183864.Aaron Ballman2013-06-131-2/+2
| | | | llvm-svn: 183904
* Remove the program class.Rafael Espindola2013-06-121-20/+18
| | | | | | | It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. llvm-svn: 183864
* Add a boolean parameter to the ExecuteAndWait static function to indicatedChad Rosier2013-03-261-4/+7
| | | | | | | | | | if execution failed. ExecuteAndWait returns -1 upon an execution failure, but checking the return value isn't sufficient because the wait command may return -1 as well. This new parameter is to be used by the clang driver in a subsequent commit. Part of rdar://13362359 llvm-svn: 178087
* Support/Program: Make Change<stream>ToBinary return error_code.Michael J. Spencer2011-12-131-0/+1
| | | | llvm-svn: 146522
* Have Program::Wait return -2 for crashed and timeouts instead of embeddingAndrew Trick2011-05-211-3/+2
| | | | | | info in the error message. Per Dan's request. llvm-svn: 131780
* Bugpoint support for miscompilations that result in a crash.Andrew Trick2011-05-111-2/+3
| | | | | | | | | This change allows bugpoint to pinpoint the "opt" pass and bitcode segment responsible for a crash caused by miscompilation. At least it works well for me now, without having to create any custom execution wrappers. llvm-svn: 131186
* Merge System into Support.Michael J. Spencer2010-11-291-0/+56
llvm-svn: 120298
OpenPOWER on IntegriCloud