summaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-25 19:07:43 +0000
committerChris Lattner <sabre@nondot.org>2004-10-25 19:07:43 +0000
commit7cf820191c0318a3ac75754eb9974a8b844809f6 (patch)
tree3c3d849159f49a9f2a9530beb7d979164fa3e369 /include/llvm/Target
parentf1ac33d69044e65c7c17371bc1711456e15541b1 (diff)
downloadexternal_llvm-7cf820191c0318a3ac75754eb9974a8b844809f6.zip
external_llvm-7cf820191c0318a3ac75754eb9974a8b844809f6.tar.gz
external_llvm-7cf820191c0318a3ac75754eb9974a8b844809f6.tar.bz2
Remove a dead class. Thanks to Morten Ofstad for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetSchedInfo.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h
index f2a3560..8a904d9 100644
--- a/include/llvm/Target/TargetSchedInfo.h
+++ b/include/llvm/Target/TargetSchedInfo.h
@@ -25,32 +25,6 @@ namespace llvm {
typedef long long cycles_t;
static const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
static const cycles_t INVALID_LATENCY = -HUGE_LATENCY;
-static const unsigned MAX_OPCODE_SIZE = 16;
-
-class OpCodePair {
-public:
- long val; // make long by concatenating two opcodes
- OpCodePair(MachineOpCode op1, MachineOpCode op2)
- : val((op1 < 0 || op2 < 0)?
- -1 : (long)((((unsigned) op1) << MAX_OPCODE_SIZE) | (unsigned) op2)) {}
- bool operator==(const OpCodePair& op) const {
- return val == op.val;
- }
-private:
- OpCodePair(); // disable for now
-};
-
-} // End llvm namespace
-
-namespace HASH_NAMESPACE {
- template <> struct hash<llvm::OpCodePair> {
- size_t operator()(const llvm::OpCodePair& pair) const {
- return hash<long>()(pair.val);
- }
- };
-} // End HASH_NAMESPACE (a macro) namespace
-
-namespace llvm {
//---------------------------------------------------------------------------
// class MachineResource