[llvm] 29e545d - [MC] Remove deprecated lookupTarget overload (#196778)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 9 22:55:43 PDT 2026
Author: Aiden Grossman
Date: 2026-05-09T22:55:38-07:00
New Revision: 29e545d3ea7c1a39fa4929e339609dadf1f4215b
URL: https://github.com/llvm/llvm-project/commit/29e545d3ea7c1a39fa4929e339609dadf1f4215b
DIFF: https://github.com/llvm/llvm-project/commit/29e545d3ea7c1a39fa4929e339609dadf1f4215b.diff
LOG: [MC] Remove deprecated lookupTarget overload (#196778)
This has been deprecated for a while and was slated for removal after
the branching of LLVM 22. Remove it since I'm on on the Google integrate
rotation this week and can take care of any failures on our end.
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 f7ecc71132e94..b111342aec140 100644
--- a/llvm/include/llvm/MC/TargetRegistry.h
+++ b/llvm/include/llvm/MC/TargetRegistry.h
@@ -723,17 +723,6 @@ struct TargetRegistry {
LLVM_ABI static iterator_range<iterator> targets();
- /// lookupTarget - Lookup a target based on a target triple.
- ///
- /// \param TripleStr - The triple to use for finding a target.
- /// \param Error - On failure, an error string describing why no target was
- /// found.
- // TODO(boomanaiden154): Remove this function after LLVM 22 branches.
- [[deprecated("Use overload accepting Triple instead")]]
- static const Target *lookupTarget(StringRef TripleStr, std::string &Error) {
- return lookupTarget(Triple(TripleStr), Error);
- }
-
/// lookupTarget - Lookup a target based on a target triple.
///
/// \param Triple - The triple to use for finding a target.
More information about the llvm-commits
mailing list