fix MCSectionELF to not leak memory, just like I did for MCSymbol.

MCSectionMachO is already fine (yay for fixed size arrays?),
MCSectionCOFF still leaks.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-03-15 06:23:52 +00:00
parent c28cc093e3
commit 1f8008cf21
3 changed files with 12 additions and 9 deletions

View File

@@ -42,6 +42,8 @@ namespace llvm {
};
class MCSectionCOFF : public MCSection {
// FIXME: This memory is leaked because MCSectionCOFF is bump pointer
// allocated and this never gets freed.
std::string Name;
/// IsDirective - This is true if the section name is a directive, not