[llvm] r281274 - [OptDiag] Add getHotness accessor
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 16:46:35 PDT 2016
Author: anemet
Date: Mon Sep 12 18:46:34 2016
New Revision: 281274
URL: http://llvm.org/viewvc/llvm-project?rev=281274&view=rev
Log:
[OptDiag] Add getHotness accessor
Modified:
llvm/trunk/include/llvm/IR/DiagnosticInfo.h
Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=281274&r1=281273&r2=281274&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Mon Sep 12 18:46:34 2016
@@ -402,6 +402,7 @@ public:
const char *getPassName() const { return PassName; }
const Twine &getMsg() const { return Msg; }
+ Optional<uint64_t> getHotness() const { return Hotness; }
static bool classof(const DiagnosticInfo *DI) {
return DI->getKind() >= DK_FirstRemark &&
More information about the llvm-commits
mailing list