mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user