summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ToolRunner.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use findProgramByName.Michael J. Spencer2014-11-041-10/+19
| | | | llvm-svn: 221221
* [Bugpoint] Close error log in ProcessFailure. Bugpoint had been failing to closeLang Hames2014-10-071-9/+1
| | | | | | | | | | this, and in some circumstances (e.g. reducing particularly large test-cases) this was causing bugpoint to be killed for hitting open file-handle limits. No test case: I was only able to trigger this with test cases taking upwards of 10 mins to run. llvm-svn: 219244
* bugpoint/ToolRunner.cpp: ProcessFailure(): Close ErrorFD immediately, or it ↵NAKAMURA Takumi2014-07-131-0/+8
| | | | | | | couldn't be reopened on Win32. FIXME: We may have an option in openFileForWrite(), not to use ResultFD but to close it. llvm-svn: 212902
* Remove 'using std::error_code' from tools.Rafael Espindola2014-06-131-5/+4
| | | | llvm-svn: 210876
* Don't use 'using std::error_code' in include/llvm.Rafael Espindola2014-06-121-0/+1
| | | | | | This should make sure that most new uses use the std prefix. llvm-svn: 210835
* [C++] Use 'nullptr'. Tools edition.Craig Topper2014-04-251-17/+17
| | | | llvm-svn: 207176
* [Modules] Fix potential ODR violations by sinking the DEBUG_TYPEChandler Carruth2014-04-221-1/+2
| | | | | | definition below all of the header #include lines, tools edition. llvm-svn: 206848
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-081-47/+47
| | | | | | class. llvm-svn: 203345
* [bugpoint] Don't ignore arg in -compile-commad="tool arg"Adam Nemet2014-03-081-1/+1
| | | | | | | Args is an output parameter of the function lexCommand but the reference operator was missed. llvm-svn: 203343
* Use startswith_lower() where possible.Jakub Staszak2013-11-041-1/+1
| | | | llvm-svn: 194007
* Add a createUniqueFile function and switch llvm's users of unique_file.Rafael Espindola2013-07-051-4/+4
| | | | | | | | | | | | | | This function is complementary to createTemporaryFile. It handles the case were the unique file is *not* temporary: we will rename it in the end. Since we will rename it, the file has to be in the same filesystem as the final destination and we don't prepend the system temporary directory. This has a small semantic difference from unique_file: the default mode is 0666. This matches the behavior of most unix tools. For example, with this change lld now produces files with the same permissions as ld. I will add a test of this change when I port clang over to createUniqueFile (next commit). llvm-svn: 185726
* Use sys::fs::createTemporaryFile.Rafael Espindola2013-07-051-2/+2
| | | | llvm-svn: 185719
* Remove unused includes.Rafael Espindola2013-06-261-1/+0
| | | | | | llvm itself is now PathV1 clean. llvm-svn: 184947
* Port GetMainExecutable over to PathV2.Rafael Espindola2013-06-261-2/+2
| | | | | | I will remove the V1 version as soon as I change clang in the next commit. llvm-svn: 184914
* Move GetEXESuffix to the one place it is used.Rafael Espindola2013-06-251-1/+7
| | | | llvm-svn: 184853
* Convert most uses of PathV1.h in ToolRunner.cpp.Rafael Espindola2013-06-181-25/+35
| | | | llvm-svn: 184210
* Return a std::string from PrependMainExecutablePath.Rafael Espindola2013-06-181-6/+7
| | | | llvm-svn: 184204
* Don't use PathV1.h in ToolRunner.h.Rafael Espindola2013-06-171-7/+8
| | | | llvm-svn: 184107
* Move PrependMainExecutablePath next to its only user.Rafael Espindola2013-06-141-0/+22
| | | | llvm-svn: 183980
* Avoid using PathV1.h in Program.h.Rafael Espindola2013-06-131-13/+5
| | | | llvm-svn: 183940
* Have sys::FindProgramByName return a std::string.Rafael Espindola2013-06-131-6/+6
| | | | llvm-svn: 183928
* Further reduce usage of sys::Path in bugpoint.Rafael Espindola2013-06-131-8/+8
| | | | llvm-svn: 183912
* Try to fix the build with libstdc++ 4.4.Rafael Espindola2013-06-131-1/+2
| | | | llvm-svn: 183909
* Reduce sys::Path usage in bugpoint.Rafael Espindola2013-06-131-47/+47
| | | | llvm-svn: 183908
* Remove the program class.Rafael Espindola2013-06-121-8/+7
| | | | | | | It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. llvm-svn: 183864
* [bugpoint] set Message after tool configurationSaleem Abdulrasool2013-01-241-1/+1
| | | | | | | | | | Set the message returned after the GCC runner has been constructed as otherwise the message will be overwritten by the construction of the runner, resulting in misleading messages. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Chandler Carruth <chandlerc@gmail.com> llvm-svn: 173359
* Sort the #include lines for tools/...Chandler Carruth2012-12-041-2/+2
| | | | | | | | Again, tools are trickier to pick the main module header for than library source files. I've started to follow the pattern of using LLVMContext.h when it is included as a stub for program source files. llvm-svn: 169252
* Fix unintentional use of operator bool.John McCall2012-05-021-1/+1
| | | | llvm-svn: 155978
* Remove the C backend.Eric Christopher2012-03-231-88/+0
| | | | llvm-svn: 153307
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+2
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960
* Remove the Alpha backend.Dan Gohman2011-10-271-2/+1
| | | | llvm-svn: 143164
* Have Program::Wait return -2 for crashed and timeouts instead of embeddingAndrew Trick2011-05-211-9/+4
| | | | | | info in the error message. Per Dan's request. llvm-svn: 131780
* Typo and missing checkin from r131186.Andrew Trick2011-05-111-1/+1
| | | | llvm-svn: 131187
* Bugpoint support for miscompilations that result in a crash.Andrew Trick2011-05-111-2/+16
| | | | | | | | | 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
* ADT/Triple: Move a variety of clients to using isOSDarwin() and isOSWindows()Daniel Dunbar2011-04-191-3/+2
| | | | | | predicates. llvm-svn: 129816
* Switch FileRemover from PathV1 to V2.Michael J. Spencer2011-03-311-3/+3
| | | | llvm-svn: 128630
* Added bugpoint options: -compile-custom and -compile-command=...Andrew Trick2011-02-081-24/+108
| | | | | | | | | I've been using this mode to narrow down llc unit tests. Example custom compile script: llc "$@" not pygrep.py 'mul\s+r([0-9]), r\1,' < bugpoint-test-program.s llvm-svn: 125096
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* Fix some places where error messages were being swallowed.Dan Gohman2010-11-091-6/+7
| | | | llvm-svn: 118464
* Rename FindExecutable to PrependMainExecutablePath.Mikhail Glushenkov2010-11-031-5/+5
| | | | | | Makes it more clear that it is just a path manipulation function. llvm-svn: 118174
* 80-col violations, trailing whitespace.Mikhail Glushenkov2010-11-031-22/+23
| | | | llvm-svn: 118173
* Fix these error messages to not mention PATH in cases whereDan Gohman2010-10-291-6/+6
| | | | | | | PATH isn't actually searched, and to not mention the executable directory when it isn't actually searched. llvm-svn: 117657
* Use the right gcc tool args for IsARMArchitecture.Jakob Stoklund Olesen2010-07-291-3/+3
| | | | llvm-svn: 109714
* Revert unintended white space change.Rafael Espindola2010-07-241-1/+1
| | | | llvm-svn: 109364
* Fix a trivial use after free.Rafael Espindola2010-07-241-2/+6
| | | | llvm-svn: 109363
* Apply timeouts and memory limits in more places. In particular, whenDuncan Sands2010-05-241-14/+24
| | | | | | | | bugpoint does "Running the code generator to test for a crash" this gets you a crash if llc goes into an infinite loop or uses up vast amounts of memory. llvm-svn: 104485
* Fix complete badness in bugpoint's IsARMArchitecture() function.Jakob Stoklund Olesen2010-05-131-3/+2
| | | | | | | | | | The revision history for this function is interesting, with multiple layers of wrongness being introduced one at a time. This fixes a weird issue where bugpoint -run-llc would suddenly exit 13 half way through isolating a miscompilation. llvm-svn: 103721
* Add command line option --gcc to bugpoint.Kalle Raiskila2010-05-101-6/+8
| | | | | | Remove sending duplicate of the --gcc-tool-args parameters to gcc. llvm-svn: 103397
* The llc -f flag was removed.Nick Lewycky2010-04-291-1/+0
| | | | llvm-svn: 102670
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-121-43/+50
| | | | llvm-svn: 101013
OpenPOWER on IntegriCloud