How to get a constant of some type? For exmple, get a constant 10 of Int32Ty. Perhaps it's a stupid question. Thank you very much in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100514/1da48d4e/attachment.html>
lucefe wrote:> How to get a constant of some type? > > For exmple, get a constant 10 of Int32Ty. > > Perhaps it's a stupid question. Thank you very much in advance.Look at the documentation for the ConstantInt class. It should have a method to do this. -- John T.