diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 11:48:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 11:48:36 +0000 |
commit | 6501145ec6b4e555d23a835631a848ea35b59226 (patch) | |
tree | 4b1ac1374a450d2d69629940ca136d5dee6f5a86 /lib/Target/TargetMachineRegistry.cpp | |
parent | 54785e6df01aa239759a5717d7cc115387e34559 (diff) |
Kill off unused TargetMachineRegistry methods and ivars.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachineRegistry.cpp')
-rw-r--r-- | lib/Target/TargetMachineRegistry.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/Target/TargetMachineRegistry.cpp b/lib/Target/TargetMachineRegistry.cpp deleted file mode 100644 index e9887be923..0000000000 --- a/lib/Target/TargetMachineRegistry.cpp +++ /dev/null @@ -1,51 +0,0 @@ -//===-- TargetMachineRegistry.cpp - Target Auto Registration Impl ---------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file exposes the RegisterTarget class, which TargetMachine -// implementations should use to register themselves with the system. This file -// also exposes the TargetMachineRegistry class, which allows tools to inspect -// all of registered targets. -// -//===----------------------------------------------------------------------===// - -#include "llvm/Target/TargetMachineRegistry.h" -#include <algorithm> -using namespace llvm; - -/// getClosestStaticTargetForModule - Given an LLVM module, pick the best target -/// that is compatible with the module. If no close target can be found, this -/// returns null and sets the Error string to a reason. -const TargetMachineRegistry::entry * -TargetMachineRegistry::getClosestStaticTargetForModule(const Module &M, - std::string &Error) { - const Target *T = TargetRegistry::getClosestStaticTargetForModule(M, Error); - if (!T) - return 0; - // FIXME: Temporary hack, please remove. - return new TargetMachineRegistry::entry(*T, T->Name, T->ShortDesc, - T->TargetMachineCtorFn, - T->ModuleMatchQualityFn, - T->JITMatchQualityFn); -} - -/// 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. -const TargetMachineRegistry::entry * -TargetMachineRegistry::getClosestTargetForJIT(std::string &Error) { - const Target *T = TargetRegistry::getClosestTargetForJIT(Error); - if (!T) - return 0; - // FIXME: Temporary hack, please remove. - return new TargetMachineRegistry::entry(*T, T->Name, T->ShortDesc, - T->TargetMachineCtorFn, - T->ModuleMatchQualityFn, - T->JITMatchQualityFn); -} - |