summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/TargetRegistry.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-01 10:47:13 +0000
committerAlp Toker <alp@nuanti.com>2014-07-01 10:47:13 +0000
commit1a9ea52edba7f847416521d4e0b781d35bbb9fb0 (patch)
treefe04ff3303153de896b280c75d4f8b436544ca2c /llvm/lib/Support/TargetRegistry.cpp
parent9bdf90e5c29032cc2a74c32167d1e5b0b9a8d5f5 (diff)
downloadbcm5719-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.cpp11
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);
OpenPOWER on IntegriCloud