aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-07-01 05:45:26 +0000
committerBrian Gesiak <modocache@gmail.com>2017-07-01 05:45:26 +0000
commit562eab97eaa6f777c59818ba06d4597aa581efcb (patch)
treec59bd41331efc94265c3efbcf633d44589f04cd6 /clang/lib/CodeGen/CodeGenAction.cpp
parent5df526210aa2226893f40f70a1a60092a934be71 (diff)
downloadllvm-562eab97eaa6f777c59818ba06d4597aa581efcb.zip
llvm-562eab97eaa6f777c59818ba06d4597aa581efcb.tar.gz
llvm-562eab97eaa6f777c59818ba06d4597aa581efcb.tar.bz2
Un-revert "[Driver] Add -fdiagnostics-hotness-threshold"
Summary: Un-revert https://reviews.llvm.org/D34868, but with a slight tweak to the documentation to fix an error -- I had used the wrong syntax for a link. llvm-svn: 306948
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index ba033d9..4f03de5 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -229,6 +229,9 @@ namespace clang {
void *OldDiagnosticContext = Ctx.getDiagnosticContext();
Ctx.setDiagnosticHandler(DiagnosticHandler, this);
Ctx.setDiagnosticsHotnessRequested(CodeGenOpts.DiagnosticsWithHotness);
+ if (CodeGenOpts.DiagnosticsHotnessThreshold != 0)
+ Ctx.setDiagnosticsHotnessThreshold(
+ CodeGenOpts.DiagnosticsHotnessThreshold);
std::unique_ptr<llvm::tool_output_file> OptRecordFile;
if (!CodeGenOpts.OptRecordFile.empty()) {