[llvm] [MC] Allocate MCFragment with a bump allocator (PR #96402)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 22 11:47:51 PDT 2024


================
@@ -136,6 +136,9 @@ class MCContext {
   /// objects.
   BumpPtrAllocator Allocator;
 
+  /// For MCFragment instances.
+  BumpPtrAllocator FragmentAllocator;
----------------
aengelke wrote:

Good point, ok

https://github.com/llvm/llvm-project/pull/96402


More information about the llvm-commits mailing list