summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LLVMContextImpl.h
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/IR/LLVMContextImpl.h
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/IR/LLVMContextImpl.h')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 4147f71ad9d..8f4450e9278 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -1169,7 +1169,7 @@ public:
LLVMContext::DiagnosticHandlerTy DiagnosticHandler = nullptr;
void *DiagnosticContext = nullptr;
bool RespectDiagnosticFilters = false;
- bool DiagnosticHotnessRequested = false;
+ bool DiagnosticsHotnessRequested = false;
std::unique_ptr<yaml::Output> DiagnosticsOutputFile;
LLVMContext::YieldCallbackTy YieldCallback = nullptr;
OpenPOWER on IntegriCloud