[Remarks][Driver] Use the specified format in the remarks file extension
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 17 Jun 2019 22:49:38 +0000 (22:49 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 17 Jun 2019 22:49:38 +0000 (22:49 +0000)
commit36a7a98272232fbe742963cae086b3e2ec762770
tree1a0cbda45a4db6f1a8457e6ca9bdb9d6e43da686
parent8df7f1a218f216cc90d277baed3afc501df2a5bc
[Remarks][Driver] Use the specified format in the remarks file extension

By default, use `.opt.yaml`, but when a format is specified with
`-fsave-optimization-record=<format>`, use `.opt.<format>`.

llvm-svn: 363627
clang/docs/UsersManual.rst
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/darwin-ld.c
clang/test/Driver/opt-record.c