projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
llvm-c: Add LLVMDumpType
[oota-llvm.git]
/
lib
/
IR
/
Core.cpp
diff --git
a/lib/IR/Core.cpp
b/lib/IR/Core.cpp
index cf1c1df0ed6770913a5d95d565f7d4fe89b6a5ed..7d52386b061ad85f9a463149814d8cbca513f92c 100644
(file)
--- a/
lib/IR/Core.cpp
+++ b/
lib/IR/Core.cpp
@@
-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) {