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/