Index: local/lib/VMCore/Core.cpp
===================================================================
--- local.orig/lib/VMCore/Core.cpp	2011-02-17 17:18:54.000000000 -0800
+++ local/lib/VMCore/Core.cpp	2011-02-17 17:20:03.000000000 -0800
@@ -128,6 +128,10 @@
   return wrap(unwrap(M)->getTypeByName(Name));
 }
 
+const char *LLVMGetTypeName(LLVMModuleRef M, LLVMTypeRef Ty) {
+  return unwrap(M)->getTypeName(unwrap(Ty)).c_str();
+}
+
 void LLVMDumpModule(LLVMModuleRef M) {
   unwrap(M)->dump();
 }
Index: local/include/llvm-c/Core.h
===================================================================
--- local.orig/include/llvm-c/Core.h	2010-12-03 14:06:21.000000000 -0800
+++ local/include/llvm-c/Core.h	2011-02-17 17:24:39.000000000 -0800
@@ -322,6 +322,7 @@
 LLVMBool LLVMAddTypeName(LLVMModuleRef M, const char *Name, LLVMTypeRef Ty);
 void LLVMDeleteTypeName(LLVMModuleRef M, const char *Name);
 LLVMTypeRef LLVMGetTypeByName(LLVMModuleRef M, const char *Name);
+const char *LLVMGetTypeName(LLVMModuleRef M, LLVMTypeRef Ty);
 
 /** See Module::dump. */
 void LLVMDumpModule(LLVMModuleRef M);
