mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Make sure to preserve endiannes and pointer size when cloning modules!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eea21dd91c
commit
7899b74fdb
@ -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…
Reference in New Issue
Block a user