diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2017-12-19 17:16:45 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2017-12-19 17:16:45 +0000 |
| commit | cf73eba142afd533205a94e3e472697cf908047b (patch) | |
| tree | 723c1bf774fea5ae5634edbe99c1579c5548d0f3 /clang/lib/Driver/ToolChains | |
| parent | 51425fa5bae06690973c1fbb3453500113518055 (diff) | |
| download | bcm5719-llvm-cf73eba142afd533205a94e3e472697cf908047b.tar.gz bcm5719-llvm-cf73eba142afd533205a94e3e472697cf908047b.zip | |
[clang] -foptimization-record-file= should imply -fsave-optimization-record
The Clang option -foptimization-record-file= controls which file an
optimization record is output to. Optimization records are output if you
use the Clang option -fsave-optimization-record. If you specify the
first option without the second, you get a warning that the command line
argument was unused. Passing -foptimization-record-file= should imply
-fsave-optimization-record.
This fixes PR33670
Patch by: Dmitry Venikov <venikov@phystech.edu>
Differential revision: https://reviews.llvm.org/D39834
llvm-svn: 321090
Diffstat (limited to 'clang/lib/Driver/ToolChains')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Clang.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 0a89ff96d3c..7b3f4bc9d87 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -4389,6 +4389,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-fapple-pragma-pack"); if (Args.hasFlag(options::OPT_fsave_optimization_record, + options::OPT_foptimization_record_file_EQ, options::OPT_fno_save_optimization_record, false)) { CmdArgs.push_back("-opt-record-file"); |

