mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
More dead code removal (using -Wunreachable-code)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -318,7 +318,6 @@ Init *TGParser::ParseObjectName(MultiClass *CurMultiClass) {
|
||||
// Some of these can also begin values but we disallow those cases
|
||||
// because they are unlikely to be useful.
|
||||
return StringInit::get(GetNewAnonymousName());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -722,7 +721,6 @@ Init *TGParser::ParseOperation(Record *CurRec) {
|
||||
default:
|
||||
TokError("unknown operation");
|
||||
return 0;
|
||||
break;
|
||||
case tgtok::XHead:
|
||||
case tgtok::XTail:
|
||||
case tgtok::XEmpty:
|
||||
@@ -1026,8 +1024,6 @@ Init *TGParser::ParseOperation(Record *CurRec) {
|
||||
CurMultiClass);
|
||||
}
|
||||
}
|
||||
TokError("could not parse operation");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// ParseOperatorType - Parse a type for an operator. This returns
|
||||
@@ -1088,7 +1084,6 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType,
|
||||
// still exists in some .td files. Ignore it.
|
||||
Lex.Lex(); // Skip '#'.
|
||||
return ParseSimpleValue(CurRec, ItemType, Mode);
|
||||
break;
|
||||
case tgtok::IntVal: R = IntInit::get(Lex.getCurIntVal()); Lex.Lex(); break;
|
||||
case tgtok::StrVal: {
|
||||
std::string Val = Lex.getCurStrVal();
|
||||
|
Reference in New Issue
Block a user