[LLVMdev] Recursive Types using the llvm support library

John Carrino jacarrin at uiuc.edu
Mon Mar 21 00:30:38 PST 2005


On Sun, Mar 20, 2005 at 09:30:49PM -0600, Chris Lattner wrote:
> On Sun, 20 Mar 2005, John Carrino wrote:
> >>In practice, this is leads to a horrible mess, as you've noticed.  As
> >>such, I'd suggest using Module::addTypeName to give these things names so
> >>that you have a hope to understand them and so they are more compact :)
> >
> >I took your advide and used Module::addTypeName which is a great idea
> >that I didn't know about.
> >
> >Now I am getting a seg fault, here
> >
> >SymbolTable.cpp:251
> > if (T->isAbstract()) {
> >   cast<DerivedType>(T)->addAbstractTypeUser(this);
> >
> >I am assuming the patch mentioned earlier on the thread will fix this.
> >I just wanted to ask to make sure before i went ahead and recompiled.
> 
> You would have to give me more context to say for sure, but updating to 
> current CVS can't hurt.

The patch worked great.  I appreciate all your help. 

-John




More information about the llvm-dev mailing list