summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-06-30 18:13:59 +0000
committerBrian Gesiak <modocache@gmail.com>2017-06-30 18:13:59 +0000
commit44e5f6c4acb40c7330686477d7c61a1ffe17029f (patch)
treea84c765c5534485ace6b2e10d3daebb90f3ba7d2 /llvm/lib/LTO
parent724990ab643b5497bfa3b3350c11dacbc9d9109b (diff)
downloadbcm5719-llvm-44e5f6c4acb40c7330686477d7c61a1ffe17029f.tar.gz
bcm5719-llvm-44e5f6c4acb40c7330686477d7c61a1ffe17029f.zip
[ORE] Unify spelling as "diagnostics hotness"
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. Reviewers: anemet, davidxl Reviewed By: anemet Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D34864 llvm-svn: 306848
Diffstat (limited to 'llvm/lib/LTO')
-rw-r--r--llvm/lib/LTO/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 3587c0017c9..68b8c9fcb93 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -1123,7 +1123,7 @@ lto::setupOptimizationRemarks(LLVMContext &Context,
Context.setDiagnosticsOutputFile(
llvm::make_unique<yaml::Output>(DiagnosticFile->os()));
if (LTOPassRemarksWithHotness)
- Context.setDiagnosticHotnessRequested(true);
+ Context.setDiagnosticsHotnessRequested(true);
DiagnosticFile->keep();
return std::move(DiagnosticFile);
}
OpenPOWER on IntegriCloud