mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Add preliminary support for "any" pointersize/endianness. This will need
to change soon though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -75,8 +75,10 @@ int main(int argc, char** argv, const char ** envp) {
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned Config = (M->isLittleEndian() ? TM::LittleEndian : TM::BigEndian) |
|
||||
(M->has32BitPointers() ? TM::PtrSize32 : TM::PtrSize64);
|
||||
// FIXME: in adddition to being gross, this is also wrong: This should use the
|
||||
// pointersize/endianness of the host if the pointer size is not specified!!
|
||||
unsigned Config = (M->getEndianness() != Module::BigEndian ? TM::LittleEndian : TM::BigEndian) |
|
||||
(M->getPointerSize() != Module::Pointer64 ? TM::PtrSize32 : TM::PtrSize64);
|
||||
ExecutionEngine *EE = 0;
|
||||
|
||||
// If there is nothing that is forcing us to use the interpreter, make a JIT.
|
||||
|
Reference in New Issue
Block a user