summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--llvm/include/llvm/Support/TargetRegistry.h7
-rw-r--r--llvm/lib/Support/TargetRegistry.cpp11
2 files changed, 0 insertions, 18 deletions
diff --git a/llvm/include/llvm/Support/TargetRegistry.h b/llvm/include/llvm/Support/TargetRegistry.h
index 291fb1b95db..5d5b86a6a2a 100644
--- a/llvm/include/llvm/Support/TargetRegistry.h
+++ b/llvm/include/llvm/Support/TargetRegistry.h
@@ -565,13 +565,6 @@ namespace llvm {
Triple &TheTriple,
std::string &Error);
- /// getClosestTargetForJIT - Pick the best target that is compatible with
- /// the current host. If no close target can be found, this returns null
- /// and sets the Error string to a reason.
- ///
- /// Maintained for compatibility through 2.6.
- static const Target *getClosestTargetForJIT(std::string &Error);
-
/// @}
/// @name Target Registration
/// @{
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