Make sure to preserve endiannes and pointer size when cloning modules!

llvm-svn: 5892
This commit is contained in:
Chris Lattner 2003-04-24 15:54:40 +00:00
parent 343d952a53
commit 868b3316c9

View File

@ -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.