llvm.org GIT mirror llvm / 72c42d9
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 Tobias Grosser 6 years ago
4 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3030 enum DiagnosticSeverity {
3131 DS_Error,
3232 DS_Warning,
33 DS_Remark,
34 // A note attaches additional information to one of the previous diagnostic
35 // types.
3336 DS_Note
3437 };
3538
3939 * @{
4040 */
4141
42 #define LTO_API_VERSION 9
42 #define LTO_API_VERSION 10
4343
4444 /**
4545 * \since prior to LTO_API_VERSION=3
298298 * \since LTO_API_VERSION=7
299299 */
300300 typedef enum {
301 LTO_DS_ERROR,
302 LTO_DS_WARNING,
303 LTO_DS_NOTE
301 LTO_DS_ERROR = 0,
302 LTO_DS_WARNING = 1,
303 LTO_DS_REMARK = 3, // Added in LTO_API_VERSION=10.
304 LTO_DS_NOTE = 2
304305 } lto_codegen_diagnostic_severity_t;
305306
306307 /**
141141 case DS_Warning:
142142 errs() << "warning: " << MsgStorage << "\n";
143143 break;
144 case DS_Remark:
145 errs() << "remark: " << MsgStorage << "\n";
146 break;
144147 case DS_Note:
145148 errs() << "note: " << MsgStorage << "\n";
146149 break;
561561 case DS_Warning:
562562 Severity = LTO_DS_WARNING;
563563 break;
564 case DS_Remark:
565 Severity = LTO_DS_REMARK;
566 break;
564567 case DS_Note:
565568 Severity = LTO_DS_NOTE;
566569 break;