llvm_c_ext/include/llvm-c-ext/DIBuilder.h
changeset 79 6d6e5a3ec6b1
parent 54 a288aced3dd1
--- a/llvm_c_ext/include/llvm-c-ext/DIBuilder.h	Tue Aug 30 16:57:29 2016 +0100
+++ b/llvm_c_ext/include/llvm-c-ext/DIBuilder.h	Thu Sep 15 22:14:32 2016 +0100
@@ -26,6 +26,18 @@
 extern "C" {
 #endif
 
+/**
+ * Debug info flags.
+ * 
+ * \see llvm::DINode::DIFlags
+ */
+enum LLVMDIFlag {
+#define HANDLE_DI_FLAG(ID, NAME) DIFlag##NAME = ID,
+#include "llvm/IR/DebugInfoFlags.def"
+    DIFlagAccessibility = DIFlagPrivate | DIFlagProtected | DIFlagPublic
+};
+
+
 // FIXME: These bindings shouldn't be Go-specific and should eventually move to
 // a (somewhat) less stable collection of C APIs for use in creating bindings of
 // LLVM in other languages.