Add opaque StructType;
Remove test/typehandle.py; Add test/opaque.py to demonstrate recursive type.
This commit is contained in:
parent
b71d22b570
commit
c9902ab8cf
9 changed files with 171 additions and 80 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue