[llvm-branch-commits] [llvm] [MC] Preserve target MCSubtargetInfo subclass in MCContext::getSubtargetCopy (PR #227562)

Sam Elliott via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 30 16:49:24 PDT 2026


================
@@ -949,7 +949,7 @@ MCSectionDXContainer *MCContext::getDXContainerSection(StringRef Section,
 }
 
 MCSubtargetInfo &MCContext::getSubtargetCopy(const MCSubtargetInfo &STI) {
----------------
lenary wrote:

It's used directly in `MCTargetAsmParser::copySTI()` and `CSKYAsmPrinter::runOnMachineFunction`

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


More information about the llvm-branch-commits mailing list