diff options
author | Robert Widmann <devteam.codafi@gmail.com> | 2019-02-17 21:25:47 +0000 |
---|---|---|
committer | Robert Widmann <devteam.codafi@gmail.com> | 2019-02-17 21:25:47 +0000 |
commit | a82b613c8dee1f2368610e259f30e206e8a99bd2 (patch) | |
tree | 43c24becf9e7a2eeefbde5a7fdd1861aa9bf7847 /llvm/include/llvm-c | |
parent | 92b5b195dbaf6570aceac98a1629a3f48042632f (diff) | |
download | bcm5719-llvm-a82b613c8dee1f2368610e259f30e206e8a99bd2.tar.gz bcm5719-llvm-a82b613c8dee1f2368610e259f30e206e8a99bd2.zip |
[LLVM-C] Add bindings to create enumerators
Summary: The C API don't have the bindings to create enumerators, needed to create an enumeration.
Reviewers: whitequark, CodaFi, harlanhaskins, deadalnix
Reviewed By: whitequark, CodaFi, harlanhaskins
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D58323
llvm-svn: 354237
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/DebugInfo.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h index f840ce90557..b4c9b657849 100644 --- a/llvm/include/llvm-c/DebugInfo.h +++ b/llvm/include/llvm-c/DebugInfo.h @@ -479,6 +479,19 @@ LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef Builder, LLVMDIFlags Flags); /** + * Create debugging information entry for an enumerator. + * @param Builder The DIBuilder. + * @param Name Enumerator name. + * @param NameLen Length of enumerator name. + * @param Value Enumerator value. + * @param IsUnsigned True if the value is unsigned. + */ +LLVMMetadataRef LLVMDIBuilderCreateEnumerator(LLVMDIBuilderRef Builder, + const char *Name, size_t NameLen, + int64_t Value, + LLVMBool IsUnsigned); + +/** * Create debugging information entry for an enumeration. * \param Builder The DIBuilder. * \param Scope Scope in which this enumeration is defined. |