[llvm-commits] [llvm] r49519 - in /llvm/branches/ggreif/use-diet: include/llvm/User.h lib/VMCore/Use.cpp

Gabor Greif ggreif at gmail.com
Fri Apr 11 00:00:04 PDT 2008


Author: ggreif
Date: Fri Apr 11 02:00:04 2008
New Revision: 49519

URL: http://llvm.org/viewvc/llvm-project?rev=49519&view=rev
Log:
detabify

Modified:
    llvm/branches/ggreif/use-diet/include/llvm/User.h
    llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp

Modified: llvm/branches/ggreif/use-diet/include/llvm/User.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/User.h?rev=49519&r1=49518&r2=49519&view=diff

==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/User.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/User.h Fri Apr 11 02:00:04 2008
@@ -200,19 +200,19 @@
 struct OperandTraits<User> {
   static inline Use *op_begin(User*);
   static inline Use *op_end(User*);
-	static inline unsigned operands(const User*);
+  static inline unsigned operands(const User*);
   template <class U>
-	struct Layout {
-		typedef U overlay;
-	};
-	static inline void *allocate(unsigned);
+  struct Layout {
+    typedef U overlay;
+  };
+  static inline void *allocate(unsigned);
 };
 
 class User : public Value {
   User(const User &);             // Do not implement
   void *operator new(size_t);     // Do not implement
   template <unsigned>
-	friend struct HungoffOperandTraits;
+  friend struct HungoffOperandTraits;
 protected:
   /// OperandList - This is a pointer to the array of Users for this operand.
   /// For nodes of fixed arity (e.g. a binary operator) this array will live
@@ -248,15 +248,15 @@
   }
 public:
   template <unsigned Idx> Use &Op() {
-		return OperandTraits<User>::op_begin(this)[Idx];
-	}
+    return OperandTraits<User>::op_begin(this)[Idx];
+  }
   template <unsigned Idx> const Use &Op() const {
-		return OperandTraits<User>::op_begin(const_cast<User*>(this))[Idx];
-	}
+    return OperandTraits<User>::op_begin(const_cast<User*>(this))[Idx];
+  }
   inline Use *allocHangoffUses(unsigned) const;
   void dropHungoffUses(Use *U) {
     U->zap(U, U->getImpliedUser());
-	}
+  }
 
   Value *getOperand(unsigned i) const {
     assert(i < NumOperands && "getOperand() out of range!");
@@ -306,25 +306,25 @@
 };
 
 inline Use *OperandTraits<User>::op_begin(User *U) {
-	return U->op_begin();
+  return U->op_begin();
 }
 
 inline Use *OperandTraits<User>::op_end(User *U) {
-	return U->op_end();
+  return U->op_end();
 }
 
 inline unsigned OperandTraits<User>::operands(const User *U) {
-	return U->getNumOperands();
+  return U->getNumOperands();
 }
-	/*
-	static inline void *allocate(unsigned);
+  /*
+  static inline void *allocate(unsigned);
 };
-	*/
+  */
 
 Use *User::allocHangoffUses(unsigned N) const {
   Use *Begin = static_cast<Use*>(::operator new(sizeof(Use) * N));
-	Use::initTags(Begin, Begin + N);
-	return Begin;
+  Use::initTags(Begin, Begin + N);
+  return Begin;
 }
 
 template<> struct simplify_type<User::op_iterator> {

Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp?rev=49519&r1=49518&r2=49519&view=diff

==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Fri Apr 11 02:00:04 2008
@@ -76,8 +76,8 @@
 
 void Use::zap(Use *Start, const Use *Stop) {
   while (Start != Stop) {
-		(Start++)->set(0);
-	}
+    (Start++)->set(0);
+  }
 }
 
 } // End llvm namespace





More information about the llvm-commits mailing list