Skip to content

Commit 009da92

Browse files
[TargetRegistry] Deprecate string overload of lookupTarget (#162188)
Finish the TODO that was here in line with several of the other functions in TargetRegistry now that we have access to a triple through llvm::Module.
1 parent 9048fb4 commit 009da92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/MC/TargetRegistry.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,8 @@ struct TargetRegistry {
737737
/// \param TripleStr - The triple to use for finding a target.
738738
/// \param Error - On failure, an error string describing why no target was
739739
/// found.
740-
// TODO: Drop this in favor of the method accepting Triple.
740+
// TODO(boomanaiden154): Remove this function after LLVM 22 branches.
741+
[[deprecated("Use overload accepting Triple instead")]]
741742
static const Target *lookupTarget(StringRef TripleStr, std::string &Error) {
742743
return lookupTarget(Triple(TripleStr), Error);
743744
}

0 commit comments

Comments
 (0)