Remove getTempValuesForMachineCode from the Instruction interface
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2001 20:04:10 +0000 (20:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2001 20:04:10 +0000 (20:04 +0000)
to remove dependency on <vector>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h
lib/VMCore/Instruction.cpp

index fefc1a4ff1b8894981a2b55f1f2d9c53bd31f48e..54dcf603ef6cae06edc24fff9967f04cea74699d 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef LLVM_INSTRUCTION_H
 #define LLVM_INSTRUCTION_H
 
-#include <vector>
 #include "llvm/User.h"
 
 class Type;
@@ -48,10 +47,13 @@ public:
   inline const BasicBlock *getParent() const { return Parent; }
   inline       BasicBlock *getParent()       { return Parent; }
   virtual bool hasSideEffects() const { return false; }  // Memory & Call insts
-  inline       MachineCodeForVMInstr&
-               getMachineInstrVec()         { return *machineInstrVec; }
-  const vector<Value*>&
-               getTempValuesForMachineCode() const;
+
+  // ---------------------------------------------------------------------------
+  // Machine code accessors...
+  //
+  inline MachineCodeForVMInstr &getMachineInstrVec() {
+    return *machineInstrVec; 
+  }
   
   // ---------------------------------------------------------------------------
   // Subclass classification... getInstType() returns a member of 
index 8b833cf4bb71c5dafa89d4603c7b4426a132e705..d5fe1c68e3e1b1dd06d7ea560068f985fba26a7a 100644 (file)
@@ -38,6 +38,7 @@ Instruction::addMachineInstruction(MachineInstr* minstr)
   machineInstrVec->push_back(minstr);
 }
 
+#if 0
 // Dont make this inline because you would need to include
 // MachineInstr.h in Instruction.h, which creates a circular
 // sequence of forward declarations.  Trying to fix that will
@@ -48,6 +49,7 @@ Instruction::getTempValuesForMachineCode() const
 {
   return machineInstrVec->getTempValues();
 }
+#endif
 
 void
 Instruction::dropAllReferences() {