diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-13 00:21:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-13 00:21:53 +0000 |
commit | c9d31524eec562f719d6818508b722b55a787d67 (patch) | |
tree | d9c22824481910a9fca1422e080f131f603f4aa6 /lib/MC/MCContext.cpp | |
parent | e309cfa0d8945af47dd798357549c815164d53d6 (diff) |
add some comments: MCContext owns the MCSections, but it bump pointer allocates
them, so it doesn't have to explicitly free them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r-- | lib/MC/MCContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index e6fb5c8809..63338353a1 100644 --- a/lib/MC/MCContext.cpp +++ b/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 { |