mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +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:
parent
de9416e261
commit
e236dc6553
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user