diff options
author | Tobias Grosser <tobias@grosser.es> | 2014-02-28 09:08:45 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2014-02-28 09:08:45 +0000 |
commit | 72c42d93416b9aac1750389a862d569948612c53 (patch) | |
tree | 620cc611df5afff4a8e429757c3af81c40e1f412 /lib/IR | |
parent | 6e2a50ea0a774465c768e6e465c3c30358df6331 (diff) | |
download | llvm-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 'lib/IR')
-rw-r--r-- | lib/IR/LLVMContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/IR/LLVMContext.cpp b/lib/IR/LLVMContext.cpp index d9d6de1544..1bfc515277 100644 --- a/lib/IR/LLVMContext.cpp +++ b/lib/IR/LLVMContext.cpp @@ -142,6 +142,9 @@ void LLVMContext::diagnose(const DiagnosticInfo &DI) { case DS_Warning: errs() << "warning: " << MsgStorage << "\n"; break; + case DS_Remark: + errs() << "remark: " << MsgStorage << "\n"; + break; case DS_Note: errs() << "note: " << MsgStorage << "\n"; break; |