@@ -389,6 +389,7 @@ class Target {
389
389
// / @name Feature Constructors
390
390
// / @{
391
391
392
+ // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
392
393
[[deprecated(" Use overload accepting Triple instead" )]]
393
394
MCAsmInfo *createMCAsmInfo (const MCRegisterInfo &MRI, StringRef TheTriple,
394
395
const MCTargetOptions &Options) const {
@@ -440,6 +441,7 @@ class Target {
440
441
return MCInstrAnalysisCtorFn (Info);
441
442
}
442
443
444
+ // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
443
445
[[deprecated(" Use overload accepting Triple instead" )]]
444
446
MCRegisterInfo *createMCRegInfo (StringRef TT) const {
445
447
if (!MCRegInfoCtorFn)
@@ -454,6 +456,7 @@ class Target {
454
456
return MCRegInfoCtorFn (TT);
455
457
}
456
458
459
+ // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
457
460
[[deprecated(" Use overload accepting Triple instead" )]]
458
461
MCSubtargetInfo *createMCSubtargetInfo (StringRef TheTriple, StringRef CPU,
459
462
StringRef Features) const {
@@ -496,16 +499,6 @@ class Target {
496
499
JIT);
497
500
}
498
501
499
- [[deprecated(" Use overload accepting Triple instead" )]]
500
- TargetMachine *createTargetMachine (
501
- StringRef TT, StringRef CPU, StringRef Features,
502
- const TargetOptions &Options, std::optional<Reloc::Model> RM,
503
- std::optional<CodeModel::Model> CM = std::nullopt ,
504
- CodeGenOptLevel OL = CodeGenOptLevel::Default, bool JIT = false ) const {
505
- return createTargetMachine (Triple (TT), CPU, Features, Options, RM, CM, OL,
506
- JIT);
507
- }
508
-
509
502
// / createMCAsmBackend - Create a target specific assembly parser.
510
503
MCAsmBackend *createMCAsmBackend (const MCSubtargetInfo &STI,
511
504
const MCRegisterInfo &MRI,
@@ -599,6 +592,7 @@ class Target {
599
592
return nullptr ;
600
593
}
601
594
595
+ // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
602
596
[[deprecated(" Use overload accepting Triple instead" )]]
603
597
MCRelocationInfo *createMCRelocationInfo (StringRef TT, MCContext &Ctx) const {
604
598
return createMCRelocationInfo (Triple (TT), Ctx);
@@ -616,6 +610,7 @@ class Target {
616
610
return Fn (TT, Ctx);
617
611
}
618
612
613
+ // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
619
614
[[deprecated(" Use overload accepting Triple instead" )]]
620
615
MCSymbolizer *
621
616
createMCSymbolizer (StringRef TT, LLVMOpInfoCallback GetOpInfo,
0 commit comments