summaryrefslogtreecommitdiffstats
path: root/llvm/utils/KillTheDoctor/KillTheDoctor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* KillTheDoctor.cpp: Appease cases on case-senstitive host, like mingw on linux.NAKAMURA Takumi2016-12-231-3/+3
| | | | llvm-svn: 290402
* Build KillTheDoctor with mingw-w64Reid Kleckner2016-12-221-1/+1
| | | | | | compiler-rt uses it in its lit tests. llvm-svn: 290357
* Explicitly specify the ANSI version of these Win32 APIs. While these are ↵Aaron Ballman2016-06-231-1/+1
| | | | | | seemingly unrelated changes, they are all NFC because we currently default to the ANSI versions of the APIs when building for Windows. This simply makes the ANSI usage explicit. llvm-svn: 273564
* Search for llvm-symbolizer binary in the same directory as argv[0], beforeRichard Smith2016-06-091-1/+1
| | | | | | | looking for it along $PATH. This allows installs of LLVM tools outside of $PATH to find the symbolizer and produce pretty backtraces if they crash. llvm-svn: 272232
* Modernize to range-based loopMichael Liao2016-01-071-4/+2
| | | | llvm-svn: 257037
* More missing includes only visible to MSVC.Benjamin Kramer2015-03-231-0/+1
| | | | | | NFC. llvm-svn: 232981
* Remove broken include.Rafael Espindola2014-06-131-1/+0
| | | | | | Looks like I got some git merge wrong. llvm-svn: 210911
* Fix KillTheDoctor after r210725.Rafael Espindola2014-06-131-2/+4
| | | | | | | We don't map these windows errors to generic ones since errc::timed_out is not defined on mingw. Just use the raw windows error value. llvm-svn: 210910
* Fix the build of KillTheDoctor.Rafael Espindola2014-06-121-9/+10
| | | | llvm-svn: 210843
* Remove system_error.h.Rafael Espindola2014-06-121-2/+2
| | | | | | | This is a minimal change to remove the header. I will remove the occurrences of "using std::error_code" in a followup patch. llvm-svn: 210803
* Use std::error_code instead of llvm::error_code.Rafael Espindola2014-06-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of this patch is to turn llvm/Support/system_error.h into a transitional header that just brings in the erorr_code api to the llvm namespace. I will remove it shortly afterwards. The cases where the general idea needed some tweaking: * std::errc is a namespace in msvc, so we cannot use "using std::errc". I could add an #ifdef, but there were not that many uses, so I just added std:: to them in this patch. * Template specialization had to be moved to the std namespace in this patch set already. * The msvc implementation of default_error_condition doesn't seem to provide the same transformations as we need. Not too surprising since the standard doesn't actually say what "equivalent" means. I fixed the problem by keeping our old mapping and using it at error_code construction time. Despite these shortcomings I think this is still a good thing. Some reasons: * The different implementations of system_error might improve over time. * It removes 925 lines of code from llvm already. * It removes 6313 bytes from the text segment of the clang binary when it is built with gcc and 2816 bytes when building with clang and libstdc++. llvm-svn: 210687
* Remove windows_error.Rafael Espindola2014-06-111-1/+5
| | | | | | | | | | MSVC doesn't seem to provide any is_error_code_enum enumeration for the windows errors. Fortunately very few places in llvm have to handle raw windows errors, so we can just construct the corresponding error_code directly. llvm-svn: 210631
* really fix the windows build.Rafael Espindola2014-05-311-2/+2
| | | | llvm-svn: 209964
* Fix grammar-o.Bill Wendling2012-12-111-1/+1
| | | | llvm-svn: 169798
* KillTheDoctor.cpp: Restore Win32 SDK headers before r169251.NAKAMURA Takumi2012-12-041-3/+3
| | | | llvm-svn: 169255
* Sort the #include lines for utils/...Chandler Carruth2012-12-041-5/+8
| | | | | | | I've tried to find main moudle headers where possible, but the TableGen stuff may warrant someone else looking at it. llvm-svn: 169251
* Remove dead code. Improve llvm_unreachable text. Simplify some control flow.Ahmed Charles2012-02-191-46/+0
| | | | llvm-svn: 150918
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-151-5/+5
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558
* Support/PathV1: Deprecate get{Basename,Dirname,Suffix}.Michael J. Spencer2010-12-181-1/+1
| | | | llvm-svn: 122157
* Revert r122143 through r122140, which collectively broke the LLVMC tests onOwen Anderson2010-12-181-1/+1
| | | | | | the buildbots. llvm-svn: 122149
* Support/PathV1: Deprecate get{Basename,Dirname,Suffix}.Michael J. Spencer2010-12-181-1/+1
| | | | llvm-svn: 122141
* KillTheDoctor: Cleanup error_code usage.Michael J. Spencer2010-12-061-18/+14
| | | | llvm-svn: 120986
* KillTheDoctor: Fix spelling.Michael J. Spencer2010-12-061-6/+6
| | | | llvm-svn: 120985
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120298
* This is the first step in adding sane error handling support to LLVMSystem.Michael J. Spencer2010-11-161-1/+1
| | | | | | | | | | | | | | | | | The system API's will be shifted over to returning an error_code, and returning other return values as out parameters to the function. Code that needs to check error conditions will use the errc enum values which are the same as the posix_errno defines (EBADF, E2BIG, etc...), and are compatable with the error codes in WinError.h due to some magic in system_error. An example would be: if (error_code ec = KillEvil("Java")) { // error_code can be converted to bool. handle_error(ec); } llvm-svn: 119360
* Add KillTheDoctor.Michael J. Spencer2010-10-111-0/+600
llvm-svn: 116216
OpenPOWER on IntegriCloud