mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Don't leak CodeGenInfos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -202,7 +202,8 @@ FunctionSections("ffunction-sections",
|
||||
|
||||
TargetMachine::TargetMachine(const Target &T,
|
||||
StringRef TT, StringRef CPU, StringRef FS)
|
||||
: TheTarget(T), TargetTriple(TT), TargetCPU(CPU), TargetFS(FS), AsmInfo(0),
|
||||
: TheTarget(T), TargetTriple(TT), TargetCPU(CPU), TargetFS(FS),
|
||||
CodeGenInfo(0), AsmInfo(0),
|
||||
MCRelaxAll(false),
|
||||
MCNoExecStack(false),
|
||||
MCSaveTempLabels(false),
|
||||
@@ -215,6 +216,7 @@ TargetMachine::TargetMachine(const Target &T,
|
||||
}
|
||||
|
||||
TargetMachine::~TargetMachine() {
|
||||
delete CodeGenInfo;
|
||||
delete AsmInfo;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user