mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
All DSGraphs keep a reference to the targetdata they are created with. This is
used to eliminate the hard coded, hacked in, sparc specific, global TargetData. Changing the TargetData used to actually match the code fixes problems, and eliminates a crash. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,7 +28,7 @@ class DSNode; // Each node in the graph
|
||||
class DSGraph; // A graph for a function
|
||||
|
||||
namespace DS { // FIXME: After the paper, this should get cleaned up
|
||||
enum { PointerShift = 3, // 64bit ptrs = 3, 32 bit ptrs = 2
|
||||
enum { PointerShift = 2, // 64bit ptrs = 3, 32 bit ptrs = 2
|
||||
PointerSize = 1 << PointerShift
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user