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 /lib/Target/ARM/TargetInfo | |
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 'lib/Target/ARM/TargetInfo')
-rw-r--r-- | lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp b/lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp index a9f99e0..a975a1c 100644 --- a/lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp +++ b/lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp @@ -23,24 +23,6 @@ static unsigned ARM_TripleMatchQuality(const std::string &TT) { return 0; } -static unsigned ARM_ModuleMatchQuality(const Module &M) { - // Check for a triple match. - if (unsigned Q = ARM_TripleMatchQuality(M.getTargetTriple())) - return Q; - - // Otherwise if the target triple is non-empty, we don't match. - if (!M.getTargetTriple().empty()) return 0; - - if (M.getEndianness() == Module::LittleEndian && - M.getPointerSize() == Module::Pointer32) - return 10; // Weak match - else if (M.getEndianness() != Module::AnyEndianness || - M.getPointerSize() != Module::AnyPointerSize) - return 0; // Match for some other target - - return 0; -} - Target llvm::TheThumbTarget; static unsigned Thumb_TripleMatchQuality(const std::string &TT) { @@ -52,34 +34,14 @@ static unsigned Thumb_TripleMatchQuality(const std::string &TT) { return 0; } -static unsigned Thumb_ModuleMatchQuality(const Module &M) { - // Check for a triple match. - if (unsigned Q = Thumb_TripleMatchQuality(M.getTargetTriple())) - return Q; - - // Otherwise if the target triple is non-empty, we don't match. - if (!M.getTargetTriple().empty()) return 0; - - if (M.getEndianness() == Module::LittleEndian && - M.getPointerSize() == Module::Pointer32) - return 10; // Weak match - else if (M.getEndianness() != Module::AnyEndianness || - M.getPointerSize() != Module::AnyPointerSize) - return 0; // Match for some other target - - return 0; -} - extern "C" void LLVMInitializeARMTargetInfo() { TargetRegistry::RegisterTarget(TheARMTarget, "arm", "ARM", &ARM_TripleMatchQuality, - &ARM_ModuleMatchQuality, /*HasJIT=*/true); TargetRegistry::RegisterTarget(TheThumbTarget, "thumb", "Thumb", &Thumb_TripleMatchQuality, - &Thumb_ModuleMatchQuality, /*HasJIT=*/true); } |