diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-06-26 20:59:39 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-06-26 20:59:39 +0000 |
commit | b408a524097296e13380620ebf414cc9fa389fc7 (patch) | |
tree | 4de7cca708e8388005a59f71c982197cad04e758 | |
parent | cac8885c4e3f6d69757b2616a57cc65624840d16 (diff) | |
download | clang-b408a524097296e13380620ebf414cc9fa389fc7.tar.gz clang-b408a524097296e13380620ebf414cc9fa389fc7.tar.bz2 clang-b408a524097296e13380620ebf414cc9fa389fc7.tar.xz |
Driver: Fix a misleading comment and test for what it actually did
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211806 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/Driver.cpp | 2 | ||||
-rw-r--r-- | test/Driver/crash-report.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index ca1fc4e79e..e3b53a9983 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -533,7 +533,7 @@ void Driver::generateCompilationDiagnostics(Compilation &C, Diag(clang::diag::note_drv_command_failed_diag_msg) << "Error generating run script: " + Script + " " + Err; } else { - // Append the new filename with correct preprocessed suffix. + // Replace the original filename with the preprocessed one. size_t I, E; I = Cmd.find("-main-file-name "); assert (I != std::string::npos && "Expected to find -main-file-name"); diff --git a/test/Driver/crash-report.c b/test/Driver/crash-report.c index f3c2e472e4..da1ff950fb 100644 --- a/test/Driver/crash-report.c +++ b/test/Driver/crash-report.c @@ -36,3 +36,4 @@ FOO // CHECKSH-NOT: -internal-isystem /tmp/ // CHECKSH-NOT: -internal-externc-isystem /tmp/ // CHECKSH-NOT: -dwarf-debug-flags +// CHECKSH: crash-report-{{[^ ]*}}.c |