diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-09-08 17:23:06 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-09-08 17:23:06 +0000 |
commit | c866fe19492fc8958f7579c8462cde5bc03dc3b2 (patch) | |
tree | e87720b6fba89d46485faddbd007cbc4d4b2314d /include/llvm/CodeGen/MachineInstr.h | |
parent | 0286ade27f9bff026ec64fe81dfd1050f530d10d (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 6566335e16..80755ab067 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -139,13 +139,7 @@ private: public: - // this replaces a value with a register after register allcoation - void setRegForValue(int Reg) { - assert(opType == MO_VirtualRegister || opType == MO_CCRegister); - opType = MO_MachineRegister; - regNum = Reg; - } - + }; @@ -235,7 +229,7 @@ private: public: typedef ValOpIterator<const MachineInstr, const Value> val_op_const_iterator; - typedef ValOpIterator< MachineInstr, Value> val_op_iterator; + typedef ValOpIterator<const MachineInstr, Value> val_op_iterator; public: /*ctor*/ MachineInstr (MachineOpCode _opCode, @@ -412,7 +406,7 @@ MachineCodeForVMInstr::~MachineCodeForVMInstr() class MachineCodeForBasicBlock: public vector<MachineInstr*> { public: - typedef vector<const MachineInstr*>::iterator iterator; + typedef vector<MachineInstr*>::iterator iterator; typedef vector<const MachineInstr*>::const_iterator const_iterator; }; |