[llvm-commits] [llvm] r123452 - in /llvm/trunk/include/llvm: OperandTraits.h User.h
Jay Foad
jay.foad at gmail.com
Fri Jan 14 10:41:56 PST 2011
Author: foad
Date: Fri Jan 14 12:41:56 2011
New Revision: 123452
URL: http://llvm.org/viewvc/llvm-project?rev=123452&view=rev
Log:
OperandTraits<>::Layout isn't used for anything. Remove it.
Modified:
llvm/trunk/include/llvm/OperandTraits.h
llvm/trunk/include/llvm/User.h
Modified: llvm/trunk/include/llvm/OperandTraits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/OperandTraits.h?rev=123452&r1=123451&r2=123452&view=diff
==============================================================================
--- llvm/trunk/include/llvm/OperandTraits.h (original)
+++ llvm/trunk/include/llvm/OperandTraits.h Fri Jan 14 12:41:56 2011
@@ -38,16 +38,6 @@
static unsigned operands(const User*) {
return ARITY;
}
- struct prefix {
- Use Ops[ARITY];
- prefix(); // DO NOT IMPLEMENT
- };
- template <class U>
- struct Layout {
- struct overlay : public prefix, public U {
- overlay(); // DO NOT IMPLEMENT
- };
- };
};
//===----------------------------------------------------------------------===//
Modified: llvm/trunk/include/llvm/User.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/User.h?rev=123452&r1=123451&r2=123452&view=diff
==============================================================================
--- llvm/trunk/include/llvm/User.h (original)
+++ llvm/trunk/include/llvm/User.h Fri Jan 14 12:41:56 2011
@@ -37,10 +37,6 @@
static inline Use *op_begin(User*);
static inline Use *op_end(User*);
static inline unsigned operands(const User*);
- template <class U>
- struct Layout {
- typedef U overlay;
- };
};
class User : public Value {
More information about the llvm-commits
mailing list