[llvm] MC: Remove bundle alignment mode (PR #148781)
    Alexis Engelke via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jul 15 03:12:07 PDT 2025
    
    
  
================
@@ -391,59 +368,10 @@ void MCELFStreamer::finalizeCGProfile() {
   popSection();
 }
 
-// A fragment can only have one Subtarget, and when bundling is enabled we
-// sometimes need to use the same fragment. We give an error if there
-// are conflicting Subtargets.
-static void CheckBundleSubtargets(const MCSubtargetInfo *OldSTI,
-                                  const MCSubtargetInfo *NewSTI) {
-  if (OldSTI && NewSTI && OldSTI != NewSTI)
-    report_fatal_error("A Bundle can only have one Subtarget.");
-}
-
 void MCELFStreamer::emitInstToData(const MCInst &Inst,
----------------
aengelke wrote:
Integrate linker-relaxable check into MCObjectStreamer, remove this, and make emitInstToData non-virtual. (Also replace MCObjectStreamer's emitInstToData with this one, I think this is more efficient.)
https://github.com/llvm/llvm-project/pull/148781
    
    
More information about the llvm-commits
mailing list