This is an archive of the discontinued LLVM Phabricator instance.

[ORE] Unify spelling as "diagnostics hotness"
ClosedPublic

Authored by modocache on Jun 29 2017, 11:31 PM.

Details

Summary

To enable profile hotness information in diagnostics output, Clang takes
the option -fdiagnostics-show-hotness -- that's "diagnostics", with an
"s" at the end. Clang also defines CodeGenOptions::DiagnosticsWithHotness.

LLVM, on the other hand, defines
LLVMContext::getDiagnosticHotnessRequested -- that's "diagnostic", not
"diagnostics". It's a small difference, but it's confusing, typo-inducing, and
frustrating.

Add a new method with the spelling "diagnostics", and "deprecate" the
old spelling.

Event Timeline

modocache created this revision.Jun 29 2017, 11:31 PM
anemet accepted this revision.Jun 30 2017, 4:41 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 30 2017, 4:41 AM
modocache closed this revision.Jun 30 2017, 11:14 AM

Thanks for reviewing this stack of diffs!