[LLVMdev] GetElementPtrConstantExpr

Alessio Giovanni Baroni alessiogiovanni.baroni at gmail.com
Tue Dec 18 04:27:37 PST 2012


Because I need to convert an [4 x i8] type to i8* in the instantiation of a
GlobalVariable.
I have the follow declaration: %xxx = type { i8* } and I must emit the
following variable:
@yyy = linkonce_odr constant %xxx { [4 x i8] c"hello\00" }, but it's wrong.

How do I do?


2012/12/18 Óscar Fuentes <ofv at wanadoo.es>

> Alessio Giovanni Baroni <alessiogiovanni.baroni at gmail.com> writes:
>
> > I need the class in object, but the file ConstantsContext,h isn't
> installed.
> >
> > What can I do? Copy that header under include? It's an installation bug?
>
> That's an internal header, not part of the public API.
>
> Why do you need the classes declared on that header?
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121218/f9167dd3/attachment.html>


More information about the llvm-dev mailing list