Driver: Determine file names for crash reports more reliably
authorJustin Bogner <mail@justinbogner.com>
Fri, 17 Jul 2015 03:35:54 +0000 (03:35 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 17 Jul 2015 03:35:54 +0000 (03:35 +0000)
commitd3371d87032116bda1e629e2e059a0a8254d966c
treec0355bdbd8f0961f4deef03752f616e3739c7eea
parenta5740e08744403031f5d2a0b4baa614a4d6bfad9
Driver: Determine file names for crash reports more reliably

Guessing which file name to replace based on the -main-file-name
argument to -cc1 is flawed. Instead, keep track of which arguments are
inputs to each command.

llvm-svn: 242504
clang/include/clang/Driver/Job.h
clang/lib/Driver/Job.cpp
clang/lib/Driver/Tools.cpp
clang/test/Driver/crash-report.c