]> granicus.if.org Git - clang/commit
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)
commita5899c86b69fedd22f8ebdcf14e9ae6a5a9519c3
tree904a1ee9340f8a6ffd599759fb4b2200ef4c272e
parent1e6cac6da0b8282a8bbba7bdb3dd8fe63ad41d07
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242504 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Job.h
lib/Driver/Job.cpp
lib/Driver/Tools.cpp
test/Driver/crash-report.c