Cloning stuff doesn't modify the source module
authorChris Lattner <sabre@nondot.org>
Wed, 20 Nov 2002 20:22:58 +0000 (20:22 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Nov 2002 20:22:58 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4787 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/Cloning.h

index a6cefc558985f5da4acbb43164dfcbb5260367f8..e32b106f1f6636cf3427c5787c6ca4d01fb024b3 100644 (file)
@@ -22,7 +22,7 @@ class ReturnInst;
 
 /// CloneModule - Return an exact copy of the specified module
 ///
-Module *CloneModule(Module *M);
+Module *CloneModule(const Module *M);
 
 /// CloneFunction - Return a copy of the specified function, but without
 /// embedding the function into another module.  Also, any references specified