mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 05:47:13 +00:00
Make sure to preserve endiannes and pointer size when cloning modules!
llvm-svn: 5892
This commit is contained in:
parent
343d952a53
commit
868b3316c9
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user