llvm-c: Add LLVMDumpType
[oota-llvm.git] / lib / IR / Core.cpp
index cf1c1df0ed6770913a5d95d565f7d4fe89b6a5ed..7d52386b061ad85f9a463149814d8cbca513f92c 100644 (file)
@@ -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)  {