Is there a way to insert a function at the start of a module rather than inserting it at the end, which happens by default? -- Adarsh Yoga Graduate Student, Computer Science Indiana University, Bloomington -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100502/30f9e9d4/attachment.html>
On May 1, 2010, at 11:17 PM, Adarsh Yoga wrote:> Is there a way to insert a function at the start of a module rather than inserting it at the end, which happens by default?Maybe, but... why? -eric
On May 1, 2010, at 11:17 PM, Adarsh Yoga wrote:> Is there a way to insert a function at the start of a module rather than inserting it at the end, which happens by default?You can create the function without specifying the module to insert into, then use M.getFunctionList().insert(..) to put it wherever you like. -Chris