diff options
author | Fangrui Song <i@maskray.me> | 2024-06-22 12:54:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 12:54:19 -0700 |
commit | 8cb6e587fd40b97983e445ee3f17f4c6d7190df7 (patch) | |
tree | 35295dce69e18c5300cdc3d8ced34a34e61ee481 /llvm/tools | |
parent | fc23564c44f3eff1847462253d43c08b85489148 (diff) | |
download | llvm-8cb6e587fd40b97983e445ee3f17f4c6d7190df7.zip llvm-8cb6e587fd40b97983e445ee3f17f4c6d7190df7.tar.gz llvm-8cb6e587fd40b97983e445ee3f17f4c6d7190df7.tar.bz2 |
[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
Diffstat (limited to 'llvm/tools')
0 files changed, 0 insertions, 0 deletions