summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-09-13 00:16:49 +0000
committerAdam Nemet <anemet@apple.com>2016-09-13 00:16:49 +0000
commitf2b6883ac8d96d9c5dc2c356cae14753d7cf2c6c (patch)
treed457e16a8f780fe3757cedc49846d64dda6131c3 /clang/lib/CodeGen/CodeGenAction.cpp
parent6c7b1c62126cea0146777b878a4516aa23073ae2 (diff)
downloadbcm5719-llvm-f2b6883ac8d96d9c5dc2c356cae14753d7cf2c6c.tar.gz
bcm5719-llvm-f2b6883ac8d96d9c5dc2c356cae14753d7cf2c6c.zip
Revert "Add -fdiagnostics-show-hotness"
This reverts commit r281276. Many bots are failing. llvm-svn: 281279
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index 6a3b9c6efbd..dd803909f03 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -179,7 +179,6 @@ namespace clang {
Ctx.getDiagnosticHandler();
void *OldDiagnosticContext = Ctx.getDiagnosticContext();
Ctx.setDiagnosticHandler(DiagnosticHandler, this);
- Ctx.setDiagnosticHotnessRequested(CodeGenOpts.DiagnosticsWithHotness);
// Link LinkModule into this module if present, preserving its validity.
for (auto &I : LinkModules) {
@@ -512,16 +511,9 @@ void BackendConsumer::EmitOptimizationMessage(
FullSourceLoc Loc = getBestLocationFromDebugLoc(D, BadDebugInfo, Filename,
Line, Column);
- std::string Msg;
- raw_string_ostream MsgStream(Msg);
- MsgStream << D.getMsg().str();
-
- if (D.getHotness())
- MsgStream << " (hotness: " << *D.getHotness() << ")";
-
Diags.Report(Loc, DiagID)
<< AddFlagValue(D.getPassName() ? D.getPassName() : "")
- << MsgStream.str();
+ << D.getMsg().str();
if (BadDebugInfo)
// If we were not able to translate the file:line:col information
OpenPOWER on IntegriCloud