From 41923da581a2a4464b62cb6b0afa75fa4fde40d4 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Fri, 14 Jan 2011 18:41:56 +0000 Subject: [PATCH] OperandTraits<>::Layout isn't used for anything. Remove it. llvm-svn: 123452 --- include/llvm/OperandTraits.h | 10 ---------- include/llvm/User.h | 4 ---- 2 files changed, 14 deletions(-) diff --git a/include/llvm/OperandTraits.h b/include/llvm/OperandTraits.h index dbdb1a15494..f0df5fa9bde 100644 --- a/include/llvm/OperandTraits.h +++ b/include/llvm/OperandTraits.h @@ -38,16 +38,6 @@ struct FixedNumOperandTraits { static unsigned operands(const User*) { return ARITY; } - struct prefix { - Use Ops[ARITY]; - prefix(); // DO NOT IMPLEMENT - }; - template - struct Layout { - struct overlay : public prefix, public U { - overlay(); // DO NOT IMPLEMENT - }; - }; }; //===----------------------------------------------------------------------===// diff --git a/include/llvm/User.h b/include/llvm/User.h index 1b215e395e7..db89b862c4b 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -37,10 +37,6 @@ struct OperandTraits { static inline Use *op_begin(User*); static inline Use *op_end(User*); static inline unsigned operands(const User*); - template - struct Layout { - typedef U overlay; - }; }; class User : public Value {