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");
// Emit the top level CLASS block.
BytecodeBlock ModuleBlock(BytecodeFormat::Module, Out);
- bool isBigEndian = true;
- bool hasLongPointers = true;
+ bool isBigEndian = M->isBigEndian();
+ bool hasLongPointers = M->has64BitPointers();
// Output the version identifier... we are currently on bytecode version #2
unsigned Version = (2 << 4) | isBigEndian | (hasLongPointers << 1);