mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Build the appropriate target machine for the input pointer size and endianness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf4ff33e22
commit
e0b235cd97
@ -75,10 +75,8 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
#endif
|
||||
|
||||
// FIXME: This should look at the PointerSize and endianness of the bytecode
|
||||
// file to determine the endianness and pointer size of target machine to use.
|
||||
unsigned Config = TM::PtrSize64 | TM::BigEndian;
|
||||
|
||||
unsigned Config = (M->isLittleEndian() ? TM::LittleEndian : TM::BigEndian) |
|
||||
(M->has32BitPointers() ? TM::PtrSize32 : TM::PtrSize64);
|
||||
ExecutionEngine *EE = 0;
|
||||
|
||||
// If there is nothing that is forcing us to use the interpreter, make a JIT.
|
||||
|
Loading…
Reference in New Issue
Block a user