[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneModule.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 24 10:55:01 PDT 2003
Changes in directory llvm/lib/Transforms/Utils:
CloneModule.cpp updated: 1.3 -> 1.4
---
Log message:
Make sure to preserve endiannes and pointer size when cloning modules!
---
Diffs of the changes:
Index: llvm/lib/Transforms/Utils/CloneModule.cpp
diff -u llvm/lib/Transforms/Utils/CloneModule.cpp:1.3 llvm/lib/Transforms/Utils/CloneModule.cpp:1.4
--- llvm/lib/Transforms/Utils/CloneModule.cpp:1.3 Tue Apr 22 13:02:26 2003
+++ llvm/lib/Transforms/Utils/CloneModule.cpp Thu Apr 24 10:54:40 2003
@@ -19,6 +19,8 @@
Module *CloneModule(const Module *M) {
// First off, we need to create the new module...
Module *New = new Module(M->getModuleIdentifier());
+ New->setEndianness(M->getEndianness());
+ New->setPointerSize(M->getPointerSize());
// Create the value map that maps things from the old module over to the new
// module.
More information about the llvm-commits
mailing list