[LLVMdev] Global variable's initializer with Abstract or opaque type

Jin Gu Kang jaykang10 at imrc.kist.re.kr
Thu Jul 22 19:06:21 PDT 2010


Dear LLVM members.

Hi.

I have a question.

I woule like to know whether or not a global variable with abstract or opaque type can has initializer (constructor).

For example,

general assembly code:
 %struct.test = type { [10 x i8] }
 @ovm = global %struct.test { [10 x i8] c"ovmtest\00\00\00" }

question:
 %struct.test = type { [10 x i8], opaque }
 @ovm = global %struct.test { [10 x i8] c"ovmtest\00\00\00", ???}

Thanks

Best regards,
Jin-Gu Kang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100723/28a4cc07/attachment.html>


More information about the llvm-dev mailing list