[llvm] [MC] Add MCFragment allocation helpers (PR #95197)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 14:56:44 PDT 2024


MaskRay wrote:

> Ok. What about new Fragment() in `X86/MCTargetDesc/X86AsmBackend.cpp` and `MCPseudoProbe.cpp`? Then all new Fragment() would be gone, I think.

Update `X86/MCTargetDesc/X86AsmBackend.cpp` and `MCPseudoProbe.cpp` and `MCCodeView.cpp`.

Perhaps `MCSection::flushPendingLabels` `new MCDataFragment` is the only remaining one.

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


More information about the llvm-commits mailing list