Actually set the endian/pointersize flags on the module being read in!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-07-14 20:33:13 +00:00
parent f70770abd5
commit fe2102b61d

View File

@ -1860,6 +1860,9 @@ void BytecodeReader::ParseVersionInfo() {
if (hasNoEndianness) Endianness = Module::AnyEndianness;
if (hasNoPointerSize) PointerSize = Module::AnyPointerSize;
TheModule->setEndianness(Endianness);
TheModule->setPointerSize(PointerSize);
if (Handler) Handler->handleVersionInfo(RevisionNum, Endianness, PointerSize);
}