Disallow copying explicitly.
authorChris Lattner <sabre@nondot.org>
Thu, 3 Jan 2008 00:09:47 +0000 (00:09 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Jan 2008 00:09:47 +0000 (00:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45518 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Function.h

index 31ee6d7544d9a7a5c938e9022acacdfbae18d7ed..2c4f9d9e27dea5c85e0d4c203cccb5e876a6bee7 100644 (file)
@@ -101,6 +101,9 @@ private:
       BuildLazyArguments();
   }
   void BuildLazyArguments() const;
+  
+  Function(const Function&); // DO NOT IMPLEMENT
+  void operator=(const Function&); // DO NOT IMPLEMENT
 public:
   /// Function ctor - If the (optional) Module argument is specified, the
   /// function is automatically inserted into the end of the function list for