fix encoding of BB names in the symtab

llvm-svn: 36704
This commit is contained in:
Chris Lattner
2007-05-03 22:18:21 +00:00
parent 5a800309af
commit 6be58c65d4
3 changed files with 21 additions and 5 deletions

View File

@@ -411,6 +411,16 @@ bool BitcodeReader::ParseValueSymbolTable() {
V->setName(&ValueName[0], ValueName.size());
ValueName.clear();
break;
case bitc::VST_CODE_BBENTRY:
if (ConvertToString(Record, 1, ValueName))
return Error("Invalid VST_BBENTRY record");
BasicBlock *BB = getBasicBlock(Record[0]);
if (BB == 0)
return Error("Invalid BB ID in VST_BBENTRY record");
BB->setName(&ValueName[0], ValueName.size());
ValueName.clear();
break;
}
}
}