mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-19 08:35:45 +00:00
Add support for reading and writing pointersize/endianness to and from bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -526,6 +526,11 @@ bool BytecodeParser::ParseVersionInfo(const uchar *&Buf, const uchar *EndBuf) {
|
||||
return true;
|
||||
}
|
||||
|
||||
TheModule->setEndianness(isBigEndian ? Module::BigEndian :
|
||||
Module::LittleEndian);
|
||||
TheModule->setPointerSize(hasLongPointers ? Module::Pointer64 :
|
||||
Module::Pointer32);
|
||||
|
||||
BCR_TRACE(1, "Bytecode Rev = " << (unsigned)RevisionNum << "\n");
|
||||
BCR_TRACE(1, "BigEndian/LongPointers = " << isBigEndian << ","
|
||||
<< hasLongPointers << "\n");
|
||||
|
||||
Reference in New Issue
Block a user