projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de9416e
)
Don't leak CodeGenInfos.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 20 Jul 2011 01:27:58 +0000
(
01:27
+0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 20 Jul 2011 01:27:58 +0000
(
01:27
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135555
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetMachine.cpp
b/lib/Target/TargetMachine.cpp
index 865e41aa1dd4a19083e6ff09e999be7e18db22aa..cdf739ddbd6e9f7c9de3b15424c015629e1450d6 100644
(file)
--- a/
lib/Target/TargetMachine.cpp
+++ b/
lib/Target/TargetMachine.cpp
@@
-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;
}