Hi, What's the best way to clone a Function (deep copy, not shallow)? Apparently only Instruction-classes feature a clone()-method, and there is no dedicated copy constructor/operator= for Function either. Kind regards, Bram Adams GH-SEL, INTEC, Ghent University
Hi, Op 21-sep-06, om 23:21 heeft Chris Lattner het volgende geschreven:> On Thu, 21 Sep 2006, Bram Adams wrote: >> What's the best way to clone a Function (deep copy, not shallow)? >> Apparently only Instruction-classes feature a clone()-method, and >> there is no dedicated copy constructor/operator= for Function either. > > Take a look at "llvm/Transforms/Utils/Cloning.h".That's perfect, thanks! Kind regards, Bram Adams GH-SEL, INTEC, Ghent University
On Thu, 21 Sep 2006, Bram Adams wrote:> What's the best way to clone a Function (deep copy, not shallow)? > Apparently only Instruction-classes feature a clone()-method, and > there is no dedicated copy constructor/operator= for Function either.Take a look at "llvm/Transforms/Utils/Cloning.h". -Chris -- http://nondot.org/sabre/ http://llvm.org/