projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e14dc26
)
[OptDiag] Add getHotness accessor
author
Adam Nemet
<anemet@apple.com>
Mon, 12 Sep 2016 23:46:34 +0000
(23:46 +0000)
committer
Adam Nemet
<anemet@apple.com>
Mon, 12 Sep 2016 23:46:34 +0000
(23:46 +0000)
llvm-svn: 281274
llvm/include/llvm/IR/DiagnosticInfo.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/DiagnosticInfo.h
b/llvm/include/llvm/IR/DiagnosticInfo.h
index d8be3d39cd1d01e0a1a4ee7b57fae97d6076e332..19f7c1efbfb24c77e6a300f5ceb2877bcc872fcb 100644
(file)
--- 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<uint64_t> getHotness() const { return Hotness; }
static bool classof(const DiagnosticInfo *DI) {
return DI->getKind() >= DK_FirstRemark &&