[llvm-commits] CVS: llvm/include/llvm/Analysis/DSSupport.h

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 6 12:03:01 PST 2002


Changes in directory llvm/include/llvm/Analysis:

DSSupport.h updated: 1.3 -> 1.4

---
Log message:

Make PointerShift/Size be enums so they are constants instead of globals


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DSSupport.h
diff -u llvm/include/llvm/Analysis/DSSupport.h:1.3 llvm/include/llvm/Analysis/DSSupport.h:1.4
--- llvm/include/llvm/Analysis/DSSupport.h:1.3	Wed Nov  6 00:20:27 2002
+++ llvm/include/llvm/Analysis/DSSupport.h	Wed Nov  6 12:02:26 2002
@@ -22,8 +22,10 @@
 class DSGraph;                 // A graph for a function
 class DSNodeIterator;          // Data structure graph traversal iterator
 
-namespace DS {
-  extern const unsigned PointerShift;  // 64bit ptrs = 3, 32 bit ptrs = 2
+namespace DS { // FIXME: After the paper, this should get cleaned up
+  enum { PointerShift = 3,     // 64bit ptrs = 3, 32 bit ptrs = 2
+         PointerSize = 1 << PointerShift
+  };
 };
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list