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 | e8d4c9a2c726e4847f791ec9c4d8593608699751 (patch) | |
tree | 7aa6c5e005b60fd52ca719a72143505099657454 /llvm/lib/IR/LLVMContext.cpp | |
parent | a82e4c80158fb4cec478cfe2409ce635c72dbdcb (diff) | |
download | bcm5719-llvm-e8d4c9a2c726e4847f791ec9c4d8593608699751.tar.gz bcm5719-llvm-e8d4c9a2c726e4847f791ec9c4d8593608699751.zip |
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.
llvm-svn: 202474
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp index d9d6de15447..1bfc5152773 100644 --- a/llvm/lib/IR/LLVMContext.cpp +++ b/llvm/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; |