diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-08 18:54:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-08 18:54:55 +0000 |
commit | 9c58cf6d035e63247064b71800d6c52c3b0824fe (patch) | |
tree | 72a0174b38d30a5bedc352acacd092a709cad16d /llvm/lib/Bytecode/Reader/InstructionReader.cpp | |
parent | 66d5f575bae78ada86e8f8a83d5ad9e65c120a36 (diff) | |
download | bcm5719-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.cpp | 3 |
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 |