diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 20:10:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 20:10:58 +0000 |
commit | ba64363562a4e01a689cc1cca2a80fced530956a (patch) | |
tree | 87a2e64c23a4888784fe0d7a017986dbf5a04bc1 /lib/CodeGen/MInstruction.cpp | |
parent | c1f49e4b358e1822ea00dbe74e6d659acb971f35 (diff) |
Merge with sparc backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MInstruction.cpp')
-rw-r--r-- | lib/CodeGen/MInstruction.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/CodeGen/MInstruction.cpp b/lib/CodeGen/MInstruction.cpp deleted file mode 100644 index d6740e5212..0000000000 --- a/lib/CodeGen/MInstruction.cpp +++ /dev/null @@ -1,31 +0,0 @@ -//===-- MInstruction.cpp - Implementation code for the MInstruction class -===// -// -// This file contains a printer that converts from our internal representation -// of LLVM code to a nice human readable form that is suitable for debuggging. -// -//===----------------------------------------------------------------------===// - -#include "llvm/CodeGen/MBasicBlock.h" - -/// MInstruction ctor - Create a new instruction, and append it to the -/// specified basic block. -/// -MInstruction::MInstruction(MBasicBlock *BB, unsigned O, unsigned D) - : Opcode(O), Dest(D) { - // Add this instruction to the specified basic block - BB->getInstList().push_back(this); -} - - -/// addOperand - Add a new operand to the instruction with the specified value -/// and interpretation. -/// -void MInstruction::addOperand(unsigned Value, MOperand::Interpretation Ty) { - if (Operands.size() < 4) { - OperandInterpretation[Operands.size()] = Ty; // Save interpretation - } else { - assert(Ty == MOperand::Register && - "Trying to add 5th operand that is not a register to MInstruction!"); - } - Operands.push_back(Value); -} |