[LLVMdev] Cloning Function-objects

Chris Lattner sabre at nondot.org
Thu Sep 21 14:21:57 PDT 2006

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".



More information about the llvm-dev mailing list