mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Make PointerShift/Size be enums so they are constants instead of globals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c0bd014c5
commit
ce4a2e1132
@ -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
|
||||
};
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -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
|
||||
};
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user