From b691316838646a0b6ea9743fe23683e650740290 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Aug 2009 00:21:53 +0000 Subject: add some comments: MCContext owns the MCSections, but it bump pointer allocates them, so it doesn't have to explicitly free them. llvm-svn: 78870 --- llvm/lib/MC/MCContext.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/MC/MCContext.cpp') diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index e6fb5c8809b..63338353a1f 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -18,6 +18,8 @@ MCContext::MCContext() { } MCContext::~MCContext() { + // NOTE: The sections are all allocated out of a bump pointer allocator, + // we don't need to free them here. } MCSection *MCContext::GetSection(const StringRef &Name) const { -- cgit v1.2.3