Allow this to compile with gcc 4.0.X

llvm-svn: 36723
This commit is contained in:
Reid Spencer 2007-05-04 01:43:33 +00:00
parent 7cef11b66d
commit 8148449b40

View File

@ -400,7 +400,7 @@ bool BitcodeReader::ParseValueSymbolTable() {
switch (Stream.ReadRecord(Code, Record)) { switch (Stream.ReadRecord(Code, Record)) {
default: // Default behavior: unknown type. default: // Default behavior: unknown type.
break; break;
case bitc::VST_CODE_ENTRY: // VST_ENTRY: [valueid, namelen, namechar x N] case bitc::VST_CODE_ENTRY: { // VST_ENTRY: [valueid, namelen, namechar x N]
if (ConvertToString(Record, 1, ValueName)) if (ConvertToString(Record, 1, ValueName))
return Error("Invalid TST_ENTRY record"); return Error("Invalid TST_ENTRY record");
unsigned ValueID = Record[0]; unsigned ValueID = Record[0];
@ -411,7 +411,8 @@ bool BitcodeReader::ParseValueSymbolTable() {
V->setName(&ValueName[0], ValueName.size()); V->setName(&ValueName[0], ValueName.size());
ValueName.clear(); ValueName.clear();
break; break;
case bitc::VST_CODE_BBENTRY: }
case bitc::VST_CODE_BBENTRY: {
if (ConvertToString(Record, 1, ValueName)) if (ConvertToString(Record, 1, ValueName))
return Error("Invalid VST_BBENTRY record"); return Error("Invalid VST_BBENTRY record");
BasicBlock *BB = getBasicBlock(Record[0]); BasicBlock *BB = getBasicBlock(Record[0]);
@ -424,6 +425,7 @@ bool BitcodeReader::ParseValueSymbolTable() {
} }
} }
} }
}
/// DecodeSignRotatedValue - Decode a signed value stored with the sign bit in /// DecodeSignRotatedValue - Decode a signed value stored with the sign bit in
/// the LSB for dense VBR encoding. /// the LSB for dense VBR encoding.