diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2017-04-17 11:52:54 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2017-04-17 11:52:54 +0000 |
commit | 603e72e193c997a85648463175c80979ffe4c6d1 (patch) | |
tree | 8845c5b0176872889cf9cc3aaa362b72fde9dedb /include/llvm-c/Types.h | |
parent | 63c0d1d702ca0f990b6f2915e7724c143b71e9ce (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 'include/llvm-c/Types.h')
-rw-r--r-- | include/llvm-c/Types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm-c/Types.h b/include/llvm-c/Types.h index 3d472a6bf47..13fb36ec86e 100644 --- a/include/llvm-c/Types.h +++ b/include/llvm-c/Types.h @@ -83,6 +83,13 @@ typedef struct LLVMOpaqueValue *LLVMValueRef; typedef struct LLVMOpaqueBasicBlock *LLVMBasicBlockRef; /** + * Represents an LLVM Metadata. + * + * This models llvm::Metadata. + */ +typedef struct LLVMOpaqueMetadata *LLVMMetadataRef; + +/** * Represents an LLVM basic block builder. * * This models llvm::IRBuilder. |