aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm2cpp
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
commit3481657da663423d610ef3ac7ad3f0680ef7c72d (patch)
tree010656dac5e2f838479339d28c909673189a9be1 /tools/llvm2cpp
parent263a98e4654f9fa6c6078446e21a958a33071d83 (diff)
downloadexternal_llvm-3481657da663423d610ef3ac7ad3f0680ef7c72d.zip
external_llvm-3481657da663423d610ef3ac7ad3f0680ef7c72d.tar.gz
external_llvm-3481657da663423d610ef3ac7ad3f0680ef7c72d.tar.bz2
Add missing break statements!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm2cpp')
-rw-r--r--tools/llvm2cpp/CppWriter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp
index 9dffb63..483016e 100644
--- a/tools/llvm2cpp/CppWriter.cpp
+++ b/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] << ", "