diff options
| author | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
| commit | 46a9f016c5fca708710e8c791675354cbf51fdfa (patch) | |
| tree | 63642aaaa31ba6bc3ee7ee892cccee1bf17f5abc /llvm/lib/TableGen | |
| parent | e4d798f07897a6378d0f2588e4c2335ec85ca935 (diff) | |
| download | bcm5719-llvm-46a9f016c5fca708710e8c791675354cbf51fdfa.tar.gz bcm5719-llvm-46a9f016c5fca708710e8c791675354cbf51fdfa.zip | |
More dead code removal (using -Wunreachable-code)
llvm-svn: 148578
Diffstat (limited to 'llvm/lib/TableGen')
| -rw-r--r-- | llvm/lib/TableGen/TGParser.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp index 9ed7ebbb6bd..13a752e3a2d 100644 --- a/llvm/lib/TableGen/TGParser.cpp +++ b/llvm/lib/TableGen/TGParser.cpp @@ -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(); |

