Add opaque StructType;

Remove test/typehandle.py;
Add test/opaque.py to demonstrate recursive type.
This commit is contained in:
Siu Kwan Lam 2012-07-22 15:14:52 -07:00
commit c9902ab8cf
9 changed files with 171 additions and 80 deletions

View file

@ -90,6 +90,11 @@ char *do_print(W obj)
return strdup(buf.str().c_str());
}
int LLVMIsLiteralStruct(LLVMTypeRef type)
{
return llvm::unwrap<llvm::StructType>(type)->isLiteral();
}
LLVMTypeRef LLVMStructTypeIdentified(const char * name)
{
using namespace llvm;