https://github.com/aengelke approved this pull request. LGTM. Re flushPendingLabels -- maybe for now pass a context as parameter so that the new() is gone there, too? We then could switch to MCContext's allocator. https://github.com/llvm/llvm-project/pull/95197