[LLVMdev] StructTypes into one

Neo Nomaly neonomaly.x at gmail.com
Fri May 4 09:25:16 PDT 2012


I have such problem with linking represented files....  llvm-link 1.bc 2.bc
-o 3.bc

2012/5/4 Duncan Sands <baldrick at free.fr>

> 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.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



Kadysev Mikhail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120504/d4aef9e6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.bc
Type: application/octet-stream
Size: 28932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120504/d4aef9e6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.bc
Type: application/octet-stream
Size: 28876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120504/d4aef9e6/attachment-0001.obj>


More information about the llvm-dev mailing list