[all-commits] [llvm/llvm-project] 8cb6e5: [MC] Allocate MCFragment with a bump allocator
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Jun 22 12:54:40 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8cb6e587fd40b97983e445ee3f17f4c6d7190df7
https://github.com/llvm/llvm-project/commit/8cb6e587fd40b97983e445ee3f17f4c6d7190df7
Author: Fangrui Song <i at maskray.me>
Date: 2024-06-22 (Sat, 22 Jun 2024)
Changed paths:
M llvm/include/llvm/MC/MCContext.h
M llvm/lib/MC/MCCodeView.cpp
M llvm/lib/MC/MCContext.cpp
M llvm/lib/MC/MCFragment.cpp
Log Message:
-----------
[MC] Allocate MCFragment with a bump allocator
#95197 and 75006466296ed4b0f845cbbec4bf77c21de43b40 eliminated all raw
`new MCXXXFragment`. We can now place fragments in a bump allocator.
In addition, remove the dead `Kind == FragmentType(~0)` condition.
~CodeViewContext may call `StrTabFragment->destroy()` and need to be
reset before `FragmentAllocator.Reset()`.
Tested by llvm/test/MC/COFF/cv-compiler-info.ll using asan.
Pull Request: https://github.com/llvm/llvm-project/pull/96402
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list