]> granicus.if.org Git - clang/commit
[clang] -foptimization-record-file= should imply -fsave-optimization-record
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Dec 2017 17:16:45 +0000 (17:16 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Dec 2017 17:16:45 +0000 (17:16 +0000)
commitc0cdbb20fe24f48e22ae9ba0d0beee9a269ae313
treec963ebde282076be7eb97e323af4898fbb840ba8
parentc02f36df648145b81e7f089da4140b83055ba5a1
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321090 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/opt-record.c