add support for BLOCKINFO records at the module level. This fixes the reader

issues reid noticed last night.

llvm-svn: 36785
This commit is contained in:
Chris Lattner
2007-05-05 18:57:30 +00:00
parent 1077d2a30d
commit 6eeea5dc05

View File

@@ -805,6 +805,10 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) {
if (Stream.SkipBlock())
return Error("Malformed block record");
break;
case bitc::BLOCKINFO_BLOCK_ID:
if (Stream.ReadBlockInfoBlock())
return Error("Malformed BlockInfoBlock");
break;
case bitc::PARAMATTR_BLOCK_ID:
if (ParseParamAttrBlock())
return true;