mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
llvm-c: Add LLVMDumpType
The C API currently allows to dump values (LLVMDumpValue), but a similar method for types was not exported. Patch by Peter Zotov Differential Revision: http://llvm-reviews.chandlerc.com/D1911 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36a02c0289
commit
75a5df1d1e
@ -699,6 +699,13 @@ LLVMBool LLVMTypeIsSized(LLVMTypeRef Ty);
|
||||
*/
|
||||
LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty);
|
||||
|
||||
/**
|
||||
* Dump a representation of a type to stderr.
|
||||
*
|
||||
* @see llvm::Type::dump()
|
||||
*/
|
||||
void LLVMDumpType(LLVMTypeRef Val);
|
||||
|
||||
/**
|
||||
* @defgroup LLVMCCoreTypeInt Integer Types
|
||||
*
|
||||
|
@ -220,6 +220,10 @@ LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty) {
|
||||
return wrap(&unwrap(Ty)->getContext());
|
||||
}
|
||||
|
||||
void LLVMDumpType(LLVMTypeRef Ty) {
|
||||
return unwrap(Ty)->dump();
|
||||
}
|
||||
|
||||
/*--.. Operations on integer types .........................................--*/
|
||||
|
||||
LLVMTypeRef LLVMInt1TypeInContext(LLVMContextRef C) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user