diff options
author | Alp Toker <alp@nuanti.com> | 2014-07-01 10:47:13 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-07-01 10:47:13 +0000 |
commit | 1a9ea52edba7f847416521d4e0b781d35bbb9fb0 (patch) | |
tree | fe04ff3303153de896b280c75d4f8b436544ca2c /llvm/lib/Support/TargetRegistry.cpp | |
parent | 9bdf90e5c29032cc2a74c32167d1e5b0b9a8d5f5 (diff) | |
download | bcm5719-llvm-1a9ea52edba7f847416521d4e0b781d35bbb9fb0.tar.gz bcm5719-llvm-1a9ea52edba7f847416521d4e0b781d35bbb9fb0.zip |
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
Diffstat (limited to 'llvm/lib/Support/TargetRegistry.cpp')
-rw-r--r-- | llvm/lib/Support/TargetRegistry.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
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<StringRef, const Target *> *LHS, const std::pair<StringRef, const Target *> *RHS) { return LHS->first.compare(RHS->first); |