summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorJeroen Ketema <j.ketema@imperial.ac.uk>2016-04-08 09:19:02 +0000
committerJeroen Ketema <j.ketema@imperial.ac.uk>2016-04-08 09:19:02 +0000
commitad659c3400d03fe1797c5b00eb825d4b6b745686 (patch)
tree81e015dc78782624c752b915510e01b6e7b1cfca /llvm/include/llvm-c/Core.h
parent53a037f5ccbbccacba8b8d5a22f9e366805feb6e (diff)
downloadbcm5719-llvm-ad659c3400d03fe1797c5b00eb825d4b6b745686.tar.gz
bcm5719-llvm-ad659c3400d03fe1797c5b00eb825d4b6b745686.zip
[llvm-c] Expose LLVMContextGetDiagnostic{Handler,Context}
Differential Revision: http://reviews.llvm.org/D18820 llvm-svn: 265773
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r--llvm/include/llvm-c/Core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index a339ce9c31e..d9b6712ac27 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -432,6 +432,16 @@ void LLVMContextSetDiagnosticHandler(LLVMContextRef C,
void *DiagnosticContext);
/**
+ * Get the diagnostic handler of this context.
+ */
+LLVMDiagnosticHandler LLVMContextGetDiagnosticHandler(LLVMContextRef C);
+
+/**
+ * Get the diagnostic context of this context.
+ */
+void *LLVMContextGetDiagnosticContext(LLVMContextRef C);
+
+/**
* Set the yield callback function for this context.
*
* @see LLVMContext::setYieldCallback()
OpenPOWER on IntegriCloud