[llvm] 80f627e - TargetRegistry: Remove deprecated create*Info that take StringRef parameter (#180448)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 8 18:22:09 PST 2026


Author: Fangrui Song
Date: 2026-02-08T18:22:04-08:00
New Revision: 80f627e6d5f1adedd5747b265f79e2304a200367

URL: https://github.com/llvm/llvm-project/commit/80f627e6d5f1adedd5747b265f79e2304a200367
DIFF: https://github.com/llvm/llvm-project/commit/80f627e6d5f1adedd5747b265f79e2304a200367.diff

LOG: TargetRegistry: Remove deprecated create*Info that take StringRef parameter (#180448)

Added: 
    

Modified: 
    llvm/include/llvm/MC/TargetRegistry.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/TargetRegistry.h b/llvm/include/llvm/MC/TargetRegistry.h
index 234c587c8e951..4451dfa72a5f4 100644
--- a/llvm/include/llvm/MC/TargetRegistry.h
+++ b/llvm/include/llvm/MC/TargetRegistry.h
@@ -389,15 +389,6 @@ class Target {
   /// @name Feature Constructors
   /// @{
 
-  // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
-  [[deprecated("Use overload accepting Triple instead")]]
-  MCAsmInfo *createMCAsmInfo(const MCRegisterInfo &MRI, StringRef TheTriple,
-                             const MCTargetOptions &Options) const {
-    if (!MCAsmInfoCtorFn)
-      return nullptr;
-    return MCAsmInfoCtorFn(MRI, Triple(TheTriple), Options);
-  }
-
   /// Create a MCAsmInfo implementation for the specified
   /// target triple.
   ///
@@ -441,14 +432,6 @@ class Target {
     return MCInstrAnalysisCtorFn(Info);
   }
 
-  // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
-  [[deprecated("Use overload accepting Triple instead")]]
-  MCRegisterInfo *createMCRegInfo(StringRef TT) const {
-    if (!MCRegInfoCtorFn)
-      return nullptr;
-    return MCRegInfoCtorFn(Triple(TT));
-  }
-
   /// Create a MCRegisterInfo implementation.
   MCRegisterInfo *createMCRegInfo(const Triple &TT) const {
     if (!MCRegInfoCtorFn)
@@ -456,15 +439,6 @@ class Target {
     return MCRegInfoCtorFn(TT);
   }
 
-  // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
-  [[deprecated("Use overload accepting Triple instead")]]
-  MCSubtargetInfo *createMCSubtargetInfo(StringRef TheTriple, StringRef CPU,
-                                         StringRef Features) const {
-    if (!MCSubtargetInfoCtorFn)
-      return nullptr;
-    return MCSubtargetInfoCtorFn(Triple(TheTriple), CPU, Features);
-  }
-
   /// createMCSubtargetInfo - Create a MCSubtargetInfo implementation.
   ///
   /// \param TheTriple This argument is used to determine the target machine
@@ -592,12 +566,6 @@ class Target {
     return nullptr;
   }
 
-  // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
-  [[deprecated("Use overload accepting Triple instead")]]
-  MCRelocationInfo *createMCRelocationInfo(StringRef TT, MCContext &Ctx) const {
-    return createMCRelocationInfo(Triple(TT), Ctx);
-  }
-
   /// createMCRelocationInfo - Create a target specific MCRelocationInfo.
   ///
   /// \param TT The target triple.
@@ -610,17 +578,6 @@ class Target {
     return Fn(TT, Ctx);
   }
 
-  // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
-  [[deprecated("Use overload accepting Triple instead")]]
-  MCSymbolizer *
-  createMCSymbolizer(StringRef TT, LLVMOpInfoCallback GetOpInfo,
-                     LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo,
-                     MCContext *Ctx,
-                     std::unique_ptr<MCRelocationInfo> &&RelInfo) const {
-    return createMCSymbolizer(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx,
-                              std::move(RelInfo));
-  }
-
   /// createMCSymbolizer - Create a target specific MCSymbolizer.
   ///
   /// \param TT The target triple.


        


More information about the llvm-commits mailing list