It is used to drive this from the clang driver via -mllvm.
Same option name is used as in opt.
Differential D26832
[LTO] Add option to generate optimization records anemet on Nov 17 2016, 9:19 PM. Authored by
Details It is used to drive this from the clang driver via -mllvm. Same option name is used as in opt.
Diff Detail
Event Timeline
Comment Actions LGTM with the remaining comment fixed but please wait for a second opinion.
Comment Actions For the record, this option was renamed to -lto-pass-remarks-output (r287627, r287628) because it broke LLVM_LINK_LLVM_DYLIB due to duplicate option name with opt.
|
Actually there is an issue with this code: the backend can also emit remarks, but they may not be in the file, or the file be truncated because you flushed early but not after the backend it complete.