From 1a9ea52edba7f847416521d4e0b781d35bbb9fb0 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 1 Jul 2014 10:47:13 +0000 Subject: Remove obsolete function TargetRegistry::getClosestTargetForJIT() This was kept around "for compatibility through 2.6" in 2009 and is not used or tested. llvm-svn: 212095 --- llvm/lib/Support/TargetRegistry.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'llvm/lib/Support/TargetRegistry.cpp') diff --git a/llvm/lib/Support/TargetRegistry.cpp b/llvm/lib/Support/TargetRegistry.cpp index a008831eb6b..f6918835f74 100644 --- a/llvm/lib/Support/TargetRegistry.cpp +++ b/llvm/lib/Support/TargetRegistry.cpp @@ -116,17 +116,6 @@ void TargetRegistry::RegisterTarget(Target &T, T.HasJIT = HasJIT; } -const Target *TargetRegistry::getClosestTargetForJIT(std::string &Error) { - const Target *TheTarget = lookupTarget(sys::getDefaultTargetTriple(), Error); - - if (TheTarget && !TheTarget->hasJIT()) { - Error = "No JIT compatible target available for this host"; - return nullptr; - } - - return TheTarget; -} - static int TargetArraySortFn(const std::pair *LHS, const std::pair *RHS) { return LHS->first.compare(RHS->first); -- cgit v1.2.3