[LLVMdev] StructTypes into one

Duncan Sands baldrick at free.fr
Fri May 4 08:13:16 PDT 2012


Hi Михаил,

> Is it possible to merge StructTypes with different names like:
>
> %"class.std::allocator.4" = type { i8 }
> %"class.__gnu_cxx::new_allocator.5" = type { i8 }
> %"class.std::allocator.0" = type { i8 }
> %"class.__gnu_cxx::new_allocator.1" = type { i8 }
> %"class.std::allocator.0.6" = type { i8 }
>
> merge into
>
> %"class.__gnu_cxx::new_allocator" = type { i8 }
> %"class.std::allocator" = type { i8 }
>
> in module?

it this point it is too late.  The question is: why did the linker not merge
them when doing the linking?  So can you please provide a complete example
of modules before linking, which when linked result in this.

Thanks, Duncan.



More information about the llvm-dev mailing list