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 | 36143fc4440ac1fc2a0fc95a4999bcadc3ec207d (patch) | |
tree | 8e8d7c349a476eb4d2997258e6e3405fa0e2a994 /lib/Bytecode/Reader/InstructionReader.cpp | |
parent | a6ce898dad724380b1444f664f8e422ba1e746d0 (diff) |
Add support for the unwind instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/InstructionReader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 603c20564c..8f256e4220 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/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 |