I updated my git clone and found that my code doesn't compile any more as the methods CreateCall2(), CreateCall3() etc. have been removed from IRBuilder. What is the rationale for this breaking change? Regards Dibyendu
On Thu, May 21, 2015 at 2:41 PM, Dibyendu Majumdar <mobile at majumdar.org.uk> wrote:> I updated my git clone and found that my code doesn't compile any more > as the methods CreateCall2(), CreateCall3() etc. have been removed > from IRBuilder. > > What is the rationale for this breaking change? >API simplification - rather than having a bunch of overloads, there's now just one "CreateCall" function that takes an ArrayRef (actually it was there before) and can be passed an init list {} of arguments. The motivation was that I needed to add some overloads (one taking a Function, another taking a Type and Value) for my work on opacifying pointer types and didn't want to deal with adding them to each of the CreateCallN overloads. FWIW: LLVM's C++ API has no stability guarantees, there are breaking changes in every commit. - David> > Regards > Dibyendu > _______________________________________________ > 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/20150521/7bfc9bd3/attachment.html>
It was simplified to take any number of arguments. You should be able to just replace them with CreateCall(..., {arg1, arg2, arg3, ...}, ...) Note that LLVM's trunk API is not considered stable. On Thu, May 21, 2015 at 2:41 PM, Dibyendu Majumdar <mobile at majumdar.org.uk> wrote:> I updated my git clone and found that my code doesn't compile any more > as the methods CreateCall2(), CreateCall3() etc. have been removed > from IRBuilder. > > What is the rationale for this breaking change? > > Regards > Dibyendu > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev