mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
Fix a few memory leaks in CodeGenRegBank.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c83952c2e
commit
da08412bd0
@ -1012,6 +1012,12 @@ CodeGenRegBank::CodeGenRegBank(RecordKeeper &Records) {
|
||||
CodeGenRegisterClass::computeSubClasses(*this);
|
||||
}
|
||||
|
||||
CodeGenRegBank::~CodeGenRegBank() {
|
||||
DeleteContainerPointers(SubRegIndices);
|
||||
DeleteContainerPointers(Registers);
|
||||
DeleteContainerPointers(RegClasses);
|
||||
}
|
||||
|
||||
// Create a synthetic CodeGenSubRegIndex without a corresponding Record.
|
||||
CodeGenSubRegIndex*
|
||||
CodeGenRegBank::createSubRegIndex(StringRef Name, StringRef Namespace) {
|
||||
|
@ -521,6 +521,7 @@ namespace llvm {
|
||||
|
||||
public:
|
||||
CodeGenRegBank(RecordKeeper&);
|
||||
~CodeGenRegBank();
|
||||
|
||||
SetTheory &getSets() { return Sets; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user