summaryrefslogtreecommitdiff
path: root/include/llvm/IR/DiagnosticInfo.h
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-02-28 09:08:45 +0000
committerTobias Grosser <tobias@grosser.es>2014-02-28 09:08:45 +0000
commit72c42d93416b9aac1750389a862d569948612c53 (patch)
tree620cc611df5afff4a8e429757c3af81c40e1f412 /include/llvm/IR/DiagnosticInfo.h
parent6e2a50ea0a774465c768e6e465c3c30358df6331 (diff)
downloadllvm-72c42d93416b9aac1750389a862d569948612c53.tar.gz
llvm-72c42d93416b9aac1750389a862d569948612c53.tar.bz2
llvm-72c42d93416b9aac1750389a862d569948612c53.tar.xz
Add 'remark' diagnostic type in LLVM
A 'remark' is information that is not an error or a warning, but rather some additional information provided to the user. In contrast to a 'note' a 'remark' is an independent diagnostic, whereas a 'note' always depends on another diagnostic. A typical use case for remark nodes is information provided to the user, e.g. information provided by the vectorizer about loops that have been vectorized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/DiagnosticInfo.h')
-rw-r--r--include/llvm/IR/DiagnosticInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/IR/DiagnosticInfo.h b/include/llvm/IR/DiagnosticInfo.h
index 4c7af89d72..9b99ce6cd7 100644
--- a/include/llvm/IR/DiagnosticInfo.h
+++ b/include/llvm/IR/DiagnosticInfo.h
@@ -31,6 +31,9 @@ class Value;
enum DiagnosticSeverity {
DS_Error,
DS_Warning,
+ DS_Remark,
+ // A note attaches additional information to one of the previous diagnostic
+ // types.
DS_Note
};