diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-11-06 18:02:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-11-06 18:02:26 +0000 |
| commit | 468e98e64ea84690ef08375bc29c9ffb1d450ab0 (patch) | |
| tree | 5898e4e6e060071173503844b9157a38217a7692 /llvm/include | |
| parent | 2b79f4b7c3b3f8f76515273386c82f8f707e1dc1 (diff) | |
| download | bcm5719-llvm-468e98e64ea84690ef08375bc29c9ffb1d450ab0.tar.gz bcm5719-llvm-468e98e64ea84690ef08375bc29c9ffb1d450ab0.zip | |
Make PointerShift/Size be enums so they are constants instead of globals
llvm-svn: 4571
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/DSSupport.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/DSSupport.h b/llvm/include/llvm/Analysis/DSSupport.h index acaac37d1c2..dfd4bd79764 100644 --- a/llvm/include/llvm/Analysis/DSSupport.h +++ b/llvm/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 + }; }; //===----------------------------------------------------------------------===// |

