1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

Remove getTempValuesForMachineCode from the Instruction interface

to remove dependency on <vector>

llvm-svn: 250
This commit is contained in:
Chris Lattner 2001-07-21 20:04:10 +00:00
parent 20ecd19d7e
commit 7482575151
2 changed files with 9 additions and 5 deletions

View 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

View 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() {