llvm.org GIT mirror llvm / accd8ab
Dead code elimination git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7468 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 6 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
401401
402402 try {
403403 switch (Action) {
404 case PrintRecords:
405 *Out << Records; // No argument, dump all contents
406 break;
404407 case Parse:
405408 ParseMachineCode();
406409 break;
413416 case GenRegisterHeader:
414417 RegisterInfoEmitter(Records).runHeader(*Out);
415418 break;
416 case PrintRecords:
417 *Out << Records; // No argument, dump all contents
418 break;
419419 case PrintEnums:
420 Record *R = Records.getClass(Class);
421 if (R == 0) {
422 std::cerr << "Cannot find class '" << Class << "'!\n";
423 abort();
424 }
425
426420 std::vector Recs = Records.getAllDerivedDefinitions(Class);
427
428421 for (unsigned i = 0, e = Recs.size(); i != e; ++i)
429422 *Out << Recs[i] << ", ";
430423 *Out << "\n";
401401
402402 try {
403403 switch (Action) {
404 case PrintRecords:
405 *Out << Records; // No argument, dump all contents
406 break;
404407 case Parse:
405408 ParseMachineCode();
406409 break;
413416 case GenRegisterHeader:
414417 RegisterInfoEmitter(Records).runHeader(*Out);
415418 break;
416 case PrintRecords:
417 *Out << Records; // No argument, dump all contents
418 break;
419419 case PrintEnums:
420 Record *R = Records.getClass(Class);
421 if (R == 0) {
422 std::cerr << "Cannot find class '" << Class << "'!\n";
423 abort();
424 }
425
426420 std::vector Recs = Records.getAllDerivedDefinitions(Class);
427
428421 for (unsigned i = 0, e = Recs.size(); i != e; ++i)
429422 *Out << Recs[i] << ", ";
430423 *Out << "\n";