]> granicus.if.org Git - clang/commit
Make crash diagnostics on Windows the tiniest bit more useful
authorReid Kleckner <reid@kleckner.net>
Tue, 5 Aug 2014 20:49:12 +0000 (20:49 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 5 Aug 2014 20:49:12 +0000 (20:49 +0000)
commit31cad06755bc57a8d4e8cece2169e3bf49721638
tree28be9a811eae616a3675a6410cdad46b23f95c59
parent75bd11273fd7aa628228c204302fbb2961af720e
Make crash diagnostics on Windows the tiniest bit more useful

This escapes any backslashes in the executable path and fixes an issue
with a trailing quote when the main file name had to be quoted during
printing.

It's impossible to test this without putting backslashes or quotes into
the executable path, so I didn't add automated tests.

The crash diagnostics are still only useful if you're using bash on
Windows, though.  This should probably be writing a batch file instead.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
lib/Driver/Job.cpp