diff options
author | Hal Finkel <hfinkel@anl.gov> | 2017-08-16 21:34:27 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2017-08-16 21:34:27 +0000 |
commit | 67814df3ea7e8147e3a3b27825659784dfe13a0d (patch) | |
tree | 09993af95c6c7e1f4cc029ad4c5e7dd8a3ecfcca /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 2414429962a6625058ce86ccf4e64bb9821b14fb (diff) | |
download | llvm-67814df3ea7e8147e3a3b27825659784dfe13a0d.zip llvm-67814df3ea7e8147e3a3b27825659784dfe13a0d.tar.gz llvm-67814df3ea7e8147e3a3b27825659784dfe13a0d.tar.bz2 |
Base optimization-record file names on the final output
Using Output.getFilename() to construct the file name used for optimization
recording in Clang::ConstructJob, when -c is provided, does not work correctly
if we're not using the integrated assembler. With -no-integrated-as (or
-save-temps) Output.getFilename() gives the name of the temporary assembly
file, not the final output file. Instead, use the final output (as provided by
-o). If this is not available, then fall back to using a name based on the
input file.
Fixes PR31532.
llvm-svn: 311041
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions