summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2017-04-17 11:52:54 +0000
committerAmaury Sechet <deadalnix@gmail.com>2017-04-17 11:52:54 +0000
commit603e72e193c997a85648463175c80979ffe4c6d1 (patch)
tree8845c5b0176872889cf9cc3aaa362b72fde9dedb /bindings
parent63c0d1d702ca0f990b6f2915e7724c143b71e9ce (diff)
Introducing LLVMMetadataRef
Summary: This seems like an uncontroversial first step toward providing access to the metadata hierarchy that now exists in LLVM. This should allow for good debug info support from C. Future plans are to deprecate API that take mixed bags of values and metadata (mainly the LLVMMDNode family of functions) and migrate the rest toward the use of LLVMMetadataRef. Once this is in place, mapping of DIBuilder will be able to start. Reviewers: mehdi_amini, echristo, whitequark, jketema, Wallbraker Reviewed By: Wallbraker Subscribers: Eugene.Zelenko, axw, mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D19448 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/IRBindings.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/bindings/go/llvm/IRBindings.h b/bindings/go/llvm/IRBindings.h
index f4f490391d4..25a00b13804 100644
--- a/bindings/go/llvm/IRBindings.h
+++ b/bindings/go/llvm/IRBindings.h
@@ -26,7 +26,6 @@
extern "C" {
#endif
-typedef struct LLVMOpaqueMetadata *LLVMMetadataRef;
struct LLVMDebugLocMetadata{
unsigned Line;
unsigned Col;
@@ -59,16 +58,6 @@ void LLVMSetSubprogram(LLVMValueRef Fn, LLVMMetadataRef SP);
#ifdef __cplusplus
}
-namespace llvm {
-
-DEFINE_ISA_CONVERSION_FUNCTIONS(Metadata, LLVMMetadataRef)
-
-inline Metadata **unwrap(LLVMMetadataRef *Vals) {
- return reinterpret_cast<Metadata**>(Vals);
-}
-
-}
-
#endif
#endif