]> granicus.if.org Git - llvm/commitdiff
Remove obsolete ctor
authorChris Lattner <sabre@nondot.org>
Wed, 15 Jan 2003 19:47:02 +0000 (19:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Jan 2003 19:47:02 +0000 (19:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5301 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp

index f4b1cba1be0dd682c5fd9d15ee5d8b2ebf0b4a9c..00cab22548ce44a385a54c5405ad31ad4eadf3c8 100644 (file)
@@ -349,7 +349,6 @@ class MachineInstr: public NonCopyable {      // Disable copy operations
   bool OperandsComplete() const;
 
 public:
-  MachineInstr(MachineOpCode Opcode);
   MachineInstr(MachineOpCode Opcode, unsigned numOperands);
 
   /// MachineInstr ctor - This constructor only does a _reserve_ of the
index 295d607bede27023ed93d65c1e97497d1d031560..e83ad798d5efef8f48581bd123a3d37763a06c43 100644 (file)
@@ -20,15 +20,6 @@ using std::cerr;
 //
 extern const TargetInstrDescriptor *TargetInstrDescriptors;
 
-// Constructor for instructions with fixed #operands (nearly all)
-MachineInstr::MachineInstr(MachineOpCode _opCode)
-  : opCode(_opCode),
-    operands(TargetInstrDescriptors[_opCode].numOperands, MachineOperand()),
-    numImplicitRefs(0)
-{
-  assert(TargetInstrDescriptors[_opCode].numOperands >= 0);
-}
-
 // Constructor for instructions with variable #operands
 MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned  numOperands)
   : opCode(OpCode),