[LLVMdev] Lack of use of LLVMContextImpl::NamedStructTypes

Chris Lattner clattner at apple.com
Mon Jul 25 21:44:33 PDT 2011

On Jul 25, 2011, at 10:50 AM, Garrison Venn wrote:

> Several people on this list have reported issues with the linker regarding a 
> named StructType instance with the same name in two different modules
> being resolved into two StructTypes with different names due to StructType::
> setName(…) collision behavior. Looking at BitcodeReader::ParseTypeTableBody(…),
> I don't see use of LLVMContextImpl::NamedStructTypes or of Module::getTypeByName(…).
> Nor do I see this use anywhere else in BitcodeReader's implementation (.cpp file).
> Doesn't the context's NamedStructTypes (checking for a previously created StructType 
> with the same name), have to be used before setName(…) is called so that a new structure
> is not erroneously created?

Hi Garrison,

Do the other two threads answer the question here?


More information about the llvm-dev mailing list