Cloning Function-objects

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

Take a look at "llvm/Transforms/Utils/Cloning.h".

-Chris

Hi,