[LLVMdev] Recursive Types using the llvm support library

Chris Lattner sabre at nondot.org
Sun Mar 20 19:30:49 PST 2005


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.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list