summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm2cpp/CppWriter.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-16 06:34:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-16 06:34:39 +0000
commite1d2bcf8ce256a2c6d32ad042ba7ba66caf72e42 (patch)
treef8546b22865b38633debc45e5831eb409eb66807 /llvm/tools/llvm2cpp/CppWriter.cpp
parent406fb4f2eb6a43ef59929c5d7b6ebc473f131236 (diff)
downloadbcm5719-llvm-e1d2bcf8ce256a2c6d32ad042ba7ba66caf72e42.tar.gz
bcm5719-llvm-e1d2bcf8ce256a2c6d32ad042ba7ba66caf72e42.zip
Add missing break statements!
llvm-svn: 34341
Diffstat (limited to 'llvm/tools/llvm2cpp/CppWriter.cpp')
-rw-r--r--llvm/tools/llvm2cpp/CppWriter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp
index 9dffb638945..483016ebf69 100644
--- a/llvm/tools/llvm2cpp/CppWriter.cpp
+++ b/llvm/tools/llvm2cpp/CppWriter.cpp
@@ -1245,18 +1245,18 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) {
const CastInst* cst = cast<CastInst>(I);
Out << "CastInst* " << iName << " = new ";
switch (I->getOpcode()) {
- case Instruction::Trunc: Out << "TruncInst";
- case Instruction::ZExt: Out << "ZExtInst";
- case Instruction::SExt: Out << "SExtInst";
- case Instruction::FPTrunc: Out << "FPTruncInst";
- case Instruction::FPExt: Out << "FPExtInst";
- case Instruction::FPToUI: Out << "FPToUIInst";
- case Instruction::FPToSI: Out << "FPToSIInst";
- case Instruction::UIToFP: Out << "UIToFPInst";
- case Instruction::SIToFP: Out << "SIToFPInst";
- case Instruction::PtrToInt: Out << "PtrToInst";
- case Instruction::IntToPtr: Out << "IntToPtrInst";
- case Instruction::BitCast: Out << "BitCastInst";
+ case Instruction::Trunc: Out << "TruncInst"; break;
+ case Instruction::ZExt: Out << "ZExtInst"; break;
+ case Instruction::SExt: Out << "SExtInst"; break;
+ case Instruction::FPTrunc: Out << "FPTruncInst"; break;
+ case Instruction::FPExt: Out << "FPExtInst"; break;
+ case Instruction::FPToUI: Out << "FPToUIInst"; break;
+ case Instruction::FPToSI: Out << "FPToSIInst"; break;
+ case Instruction::UIToFP: Out << "UIToFPInst"; break;
+ case Instruction::SIToFP: Out << "SIToFPInst"; break;
+ case Instruction::PtrToInt: Out << "PtrToInst"; break;
+ case Instruction::IntToPtr: Out << "IntToPtrInst"; break;
+ case Instruction::BitCast: Out << "BitCastInst"; break;
default: assert(!"Unreachable"); break;
}
Out << "(" << opNames[0] << ", "
OpenPOWER on IntegriCloud