Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: src/IceCfg.cpp

Issue 1264913005: Fix a -Wcovered-switch-default warning in emitJumpTables. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: add warning to default.wq Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile.standalone ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 JT.pushTarget( 620 JT.pushTarget(
621 getAssembler()->getOrCreateCfgNodeLabel(Index)->getPosition()); 621 getAssembler()->getOrCreateCfgNodeLabel(Index)->getPosition());
622 } 622 }
623 } 623 }
624 } break; 624 } break;
625 case FT_Asm: { 625 case FT_Asm: {
626 // Emit the assembly directly so we don't need to hang on to all the names 626 // Emit the assembly directly so we don't need to hang on to all the names
627 for (const InstJumpTable *JumpTable : JumpTables) 627 for (const InstJumpTable *JumpTable : JumpTables)
628 getTarget()->emitJumpTable(this, JumpTable); 628 getTarget()->emitJumpTable(this, JumpTable);
629 } break; 629 } break;
630 default:
631 llvm::report_fatal_error("Invalid out file type.");
632 break;
633 } 630 }
634 } 631 }
635 632
636 void Cfg::emit() { 633 void Cfg::emit() {
637 if (!BuildDefs::dump()) 634 if (!BuildDefs::dump())
638 return; 635 return;
639 TimerMarker T(TimerStack::TT_emit, this); 636 TimerMarker T(TimerStack::TT_emit, this);
640 if (Ctx->getFlags().getDecorateAsm()) { 637 if (Ctx->getFlags().getDecorateAsm()) {
641 renumberInstructions(); 638 renumberInstructions();
642 getVMetadata()->init(VMK_Uses); 639 getVMetadata()->init(VMK_Uses);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 } 713 }
717 } 714 }
718 // Print each basic block 715 // Print each basic block
719 for (CfgNode *Node : Nodes) 716 for (CfgNode *Node : Nodes)
720 Node->dump(this); 717 Node->dump(this);
721 if (isVerbose(IceV_Instructions)) 718 if (isVerbose(IceV_Instructions))
722 Str << "}\n"; 719 Str << "}\n";
723 } 720 }
724 721
725 } // end of namespace Ice 722 } // end of namespace Ice
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698