summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
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
commite8d4c9a2c726e4847f791ec9c4d8593608699751 (patch)
tree7aa6c5e005b60fd52ca719a72143505099657454 /llvm/include/llvm-c
parenta82e4c80158fb4cec478cfe2409ce635c72dbdcb (diff)
downloadbcm5719-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/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/lto.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index bff63ad0969..87904c208cc 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/include/llvm-c/lto.h
@@ -40,7 +40,7 @@ typedef bool lto_bool_t;
* @{
*/
-#define LTO_API_VERSION 9
+#define LTO_API_VERSION 10
/**
* \since prior to LTO_API_VERSION=3
@@ -299,9 +299,10 @@ lto_module_get_linkeropt(lto_module_t mod, unsigned int index);
* \since LTO_API_VERSION=7
*/
typedef enum {
- LTO_DS_ERROR,
- LTO_DS_WARNING,
- LTO_DS_NOTE
+ LTO_DS_ERROR = 0,
+ LTO_DS_WARNING = 1,
+ LTO_DS_REMARK = 3, // Added in LTO_API_VERSION=10.
+ LTO_DS_NOTE = 2
} lto_codegen_diagnostic_severity_t;
/**
OpenPOWER on IntegriCloud