[LLVMdev] How to copy a Function

Jianzhou Zhao jianzhou at seas.upenn.edu
Mon May 17 15:36:11 PDT 2010


Hi,

I wanted to backup a Function before it is optimized. The Function
class disallows assignment operations as it comments:
  Function(const Function&); // DO NOT IMPLEMENT
  void operator=(const Function&); // DO NOT IMPLEMENT
Is there a way to construct a copy from an existing Function?

Thanks.
-- 
Jianzhou



More information about the llvm-dev mailing list