mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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:
parent
af50d00829
commit
dbc3b00df5
@ -78,7 +78,10 @@ public:
|
||||
const TargetMachine ⌖
|
||||
|
||||
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
|
||||
// machine instruction can go into either a normal register or a
|
||||
|
Loading…
Reference in New Issue
Block a user