[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneModule.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 22 13:03:03 PDT 2003


Changes in directory llvm/lib/Transforms/Utils:

CloneModule.cpp updated: 1.2 -> 1.3

---
Log message:

Preserve the new moduleID field


---
Diffs of the changes:

Index: llvm/lib/Transforms/Utils/CloneModule.cpp
diff -u llvm/lib/Transforms/Utils/CloneModule.cpp:1.2 llvm/lib/Transforms/Utils/CloneModule.cpp:1.3
--- llvm/lib/Transforms/Utils/CloneModule.cpp:1.2	Wed Apr 16 15:28:43 2003
+++ llvm/lib/Transforms/Utils/CloneModule.cpp	Tue Apr 22 13:02:26 2003
@@ -18,7 +18,7 @@
 ///
 Module *CloneModule(const Module *M) {
   // First off, we need to create the new module...
-  Module *New = new Module();
+  Module *New = new Module(M->getModuleIdentifier());
 
   // Create the value map that maps things from the old module over to the new
   // module.





More information about the llvm-commits mailing list