From: Brian Gaeke Date: Wed, 14 Jul 2004 20:33:13 +0000 (+0000) Subject: Actually set the endian/pointersize flags on the module being read in! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fe2102b61d272bb83cb2a0cf98340875672a23ac;p=oota-llvm.git 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 --- diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index d71281ed7d9..389dc573700 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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); }