[llvm-commits] [poolalloc] r124317 - /poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h

John Criswell criswell at uiuc.edu
Wed Jan 26 12:36:24 PST 2011


Author: criswell
Date: Wed Jan 26 14:36:23 2011
New Revision: 124317

URL: http://llvm.org/viewvc/llvm-project?rev=124317&view=rev
Log:
Fixed some indentation and white-space issues.
No functionality changes.

Modified:
    poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h

Modified: poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h?rev=124317&r1=124316&r2=124317&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h (original)
+++ poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h Wed Jan 26 14:36:23 2011
@@ -52,12 +52,12 @@
   tree_node* Tree;
     
   tree_node* rotate_right(tree_node* p) {
-   tree_node* x = p->left;
-   p->left = x->right;
+    tree_node* x = p->left;
+    p->left = x->right;
     x->right = p;
     return x;
   }
-    
+
   tree_node* rotate_left(tree_node* p) {
     tree_node* x = p->right;
     p->right = x->left;
@@ -153,7 +153,7 @@
   }
 
   template<class O>
-    void __clear_internal(tree_node* t, O& act) {
+  void __clear_internal(tree_node* t, O& act) {
     if (!t) return;
     __clear_internal(t->left);
     __clear_internal(t->right);
@@ -265,9 +265,9 @@
   bool remove(void* key) {
     return Tree.__remove(key);
   }
-  
+
   bool count() { return Tree.__count(); }
-  
+
   void clear() { Tree.__clear(); }
 
   template <class O>





More information about the llvm-commits mailing list