diff options
-rw-r--r-- | include/llvm/Analysis/DSSupport.h | 6 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSSupport.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h index acaac37d1c..dfd4bd7976 100644 --- a/include/llvm/Analysis/DSSupport.h +++ b/include/llvm/Analysis/DSSupport.h @@ -22,8 +22,10 @@ class DSNode; // Each node in the graph 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 + }; }; //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index acaac37d1c..dfd4bd7976 100644 --- a/include/llvm/Analysis/DataStructure/DSSupport.h +++ b/include/llvm/Analysis/DataStructure/DSSupport.h @@ -22,8 +22,10 @@ class DSNode; // Each node in the graph 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 + }; }; //===----------------------------------------------------------------------===// |