diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-08 04:57:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-08 04:57:15 +0000 |
| commit | a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a (patch) | |
| tree | ac566bc85cd22b41c0f530d82937408cd7c5e79a /llvm/lib/Bytecode/Reader/InstructionReader.cpp | |
| parent | 52112fb34e6846c33208bab143b7815eefcb0421 (diff) | |
| download | bcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.tar.gz bcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.zip | |
Neg instruction removed. Cast instruction implemented.
llvm-svn: 156
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Reader/InstructionReader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp index ab70e24f513..80127cef8cc 100644 --- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp +++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp @@ -105,6 +105,10 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, getValue(Raw.Ty, Raw.Arg1), getValue(Raw.Ty, Raw.Arg2)); return false; + } else if (Raw.Opcode == Instruction::Cast) { + Res = UnaryOperator::create(Instruction::Cast, getValue(Raw.Ty, Raw.Arg1), + getType(Raw.Arg2)); + return false; } else if (Raw.Opcode == Instruction::PHINode) { PHINode *PN = new PHINode(Raw.Ty); switch (Raw.NumOperands) { |

