Displaying 2 results from an estimated 2 matches for "module_ptr".
Did you mean:
module_ctx
2011 Dec 06
3
[LLVMdev] Regarding anonymous types
...union.anon0 = type {[4 x i8]}
Whereas, LLVM 2.9 defines the types as
%0 = type { i32, i8}
%anonanonct. = type {%anonanonn.}
%anonanonn. = type { [ 4x i8] }
%struct.test = type { %anonanonct., %0}
In case of LLVM2.9, "%0" is interesting case.
When I try to extract types using "
Module_Ptr->getTypeSymbolTable()".
Though
struct{
union {
char a[4];
};
};
too is anonymous, but a name is given to it, i.e anonanonct.
I need this information as I want to collect all type-names.
Thanks & Regards,
Pankaj
for(TypeSymbolTable::const_iterator I = M->getTypeSym...
2011 Dec 06
0
[LLVMdev] Regarding anonymous types
...hereas, LLVM 2.9 defines the types as
> %0 = type { i32, i8}
> %anonanonct. = type {%anonanonn.}
> %anonanonn. = type { [ 4x i8] }
> %struct.test = type { %anonanonct., %0}
>
> In case of LLVM2.9, "%0" is interesting case.
> When I try to extract types using "Module_Ptr->getTypeSymbolTable()".
> for(TypeSymbolTable::const_iterator I = M->getTypeSymbolTable().begin(),
> E = M->getTypeSymbolTable().end(); I != E; ++I) {
> if( I->second->isStructTy() )
> {
> //code to collect type names
> }
> }
>
&...