diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 02:22:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 02:22:58 +0000 |
commit | fa27ff296d3694a68e7abb3b6b7629588def3e58 (patch) | |
tree | 2a8122cc81a121aaf66245f276761d12dd92bca0 /include | |
parent | a5881e3060aee9f82aef3747a97650e5eafe893a (diff) | |
download | external_llvm-fa27ff296d3694a68e7abb3b6b7629588def3e58.zip external_llvm-fa27ff296d3694a68e7abb3b6b7629588def3e58.tar.gz external_llvm-fa27ff296d3694a68e7abb3b6b7629588def3e58.tar.bz2 |
Kill Target specific ModuleMatchQuality stuff.
- This was overkill and inconsistently implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetRegistry.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/llvm/Target/TargetRegistry.h b/include/llvm/Target/TargetRegistry.h index 420fba5..a216186 100644 --- a/include/llvm/Target/TargetRegistry.h +++ b/include/llvm/Target/TargetRegistry.h @@ -43,8 +43,6 @@ namespace llvm { class Target { private: typedef unsigned (*TripleMatchQualityFnTy)(const std::string &TT); - typedef unsigned (*ModuleMatchQualityFnTy)(const Module &M); - typedef unsigned (*JITMatchQualityFnTy)(); typedef TargetMachine *(*TargetMachineCtorTy)(const Target &, const Module &, @@ -64,10 +62,6 @@ namespace llvm { /// of a triple. TripleMatchQualityFnTy TripleMatchQualityFn; - /// ModuleMatchQualityFn - The target function for rating the match quality - /// of a module. - ModuleMatchQualityFnTy ModuleMatchQualityFn; - /// Name - The target name. const char *Name; @@ -222,15 +216,12 @@ namespace llvm { /// string. /// @param TQualityFn - The triple match quality computation function for /// this target. - /// @param MQualityFn - The module match quality computation function for - /// this target. /// @param HasJIT - Whether the target supports JIT code /// generation. static void RegisterTarget(Target &T, const char *Name, const char *ShortDesc, Target::TripleMatchQualityFnTy TQualityFn, - Target::ModuleMatchQualityFnTy MQualityFn, bool HasJIT = false); /// RegisterTargetMachine - Register a TargetMachine implementation for the @@ -294,9 +285,7 @@ namespace llvm { /// struct FooInfo { /// static const bool HasJIT = ...; /// - /// static unsigned getJITMatchQuality() { ... } /// static unsigned getTripleMatchQuality(const std::string &) { ... } - /// static unsigned getModuleMatchQuality(const Module &) { ... } /// }; /// } /// @@ -308,7 +297,6 @@ namespace llvm { RegisterTarget(Target &T, const char *Name, const char *Desc) { TargetRegistry::RegisterTarget(T, Name, Desc, &TargetInfoImpl::getTripleMatchQuality, - &TargetInfoImpl::getModuleMatchQuality, TargetInfoImpl::HasJIT); } }; |