From: Adam Nemet Date: Mon, 12 Sep 2016 23:46:34 +0000 (+0000) Subject: [OptDiag] Add getHotness accessor X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd84f48f9f159f7fe3fae9243c3b9d21833c7754;p=platform%2Fupstream%2Fllvm.git [OptDiag] Add getHotness accessor llvm-svn: 281274 --- diff --git a/llvm/include/llvm/IR/DiagnosticInfo.h b/llvm/include/llvm/IR/DiagnosticInfo.h index d8be3d3..19f7c1e 100644 --- a/llvm/include/llvm/IR/DiagnosticInfo.h +++ b/llvm/include/llvm/IR/DiagnosticInfo.h @@ -402,6 +402,7 @@ public: const char *getPassName() const { return PassName; } const Twine &getMsg() const { return Msg; } + Optional getHotness() const { return Hotness; } static bool classof(const DiagnosticInfo *DI) { return DI->getKind() >= DK_FirstRemark &&