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 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.
|
Side note, I very much dislike adding other cl::opt in library code, but this is what we have now. If I recall correctly, @beanz has plans for moving away of them, but not sure how far away it is.
If you use the new lib/LTO interface maybe you will be able to get rid of it (but you should use llvm-lto2 to test.