[LLVMdev] StructType::setName(...)

Chris Lattner clattner at apple.com
Tue Jul 19 09:34:36 PDT 2011


On Jul 19, 2011, at 7:51 AM, Garrison Venn wrote:

> My apologies if this has already been discussed/explained (reference?).
> 
> In browsing the new type system implementation, I was wondering if someone could give a simple
> example of why one would want to reset the name of a previous realized StructType
> instance (setBody(...) has been called). My curiosity is enhanced by the fact that
> reseting a name of a StructType instance may result in a symbol table collision which 
> would result in the renamed name not matching the parameter name to setName(...).
> This question is for my own edification. It is not rhetorical. 

The only current client of it is the strip pass, which calls setName("").

-Chris



More information about the llvm-dev mailing list