[LLVMdev] Cloning Function-objects

Bram Adams bram.adams at ugent.be
Thu Sep 21 14:15:59 PDT 2006


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



More information about the llvm-dev mailing list