mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Free memory when done with it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -78,7 +78,10 @@ public:
|
|||||||
const TargetMachine ⌖
|
const TargetMachine ⌖
|
||||||
|
|
||||||
MachineRegInfo(const TargetMachine& tgt) : target(tgt) { }
|
MachineRegInfo(const TargetMachine& tgt) : target(tgt) { }
|
||||||
|
~MachineRegInfo() {
|
||||||
|
for (unsigned i = 0, e = MachineRegClassArr.size(); i != e; ++i)
|
||||||
|
delete MachineRegClassArr[i];
|
||||||
|
}
|
||||||
|
|
||||||
// According the definition of a MachineOperand class, a Value in a
|
// According the definition of a MachineOperand class, a Value in a
|
||||||
// machine instruction can go into either a normal register or a
|
// machine instruction can go into either a normal register or a
|
||||||
|
Reference in New Issue
Block a user