summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-08 18:54:55 +0000
committerChris Lattner <sabre@nondot.org>2003-09-08 18:54:55 +0000
commit9c58cf6d035e63247064b71800d6c52c3b0824fe (patch)
tree72a0174b38d30a5bedc352acacd092a709cad16d /llvm/lib/Bytecode/Reader/InstructionReader.cpp
parent66d5f575bae78ada86e8f8a83d5ad9e65c120a36 (diff)
downloadbcm5719-llvm-9c58cf6d035e63247064b71800d6c52c3b0824fe.tar.gz
bcm5719-llvm-9c58cf6d035e63247064b71800d6c52c3b0824fe.zip
Add support for the unwind instruction
llvm-svn: 8408
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
index 603c20564ca..8f256e4220e 100644
--- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp
+++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
@@ -421,6 +421,9 @@ bool BytecodeParser::ParseInstruction(const unsigned char *&Buf,
Res = new StoreInst(getValue(ValTy, Raw.Arg1), Ptr, Raw.Opcode == 63);
return false;
}
+ case Instruction::Unwind:
+ if (Raw.NumOperands != 0) return true;
+ return new UnwindInst();
} // end switch(Raw.Opcode)
std::cerr << "Unrecognized instruction! " << Raw.Opcode
OpenPOWER on IntegriCloud