mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +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:
@@ -18,6 +18,7 @@
|
||||
|
||||
template<typename BaseType>
|
||||
class DSNodeIterator; // Data structure graph traversal iterator
|
||||
class TargetData;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
/// DSNode - Data structure node class
|
||||
@@ -134,6 +135,11 @@ public:
|
||||
DSGraph *getParentGraph() const { return ParentGraph; }
|
||||
void setParentGraph(DSGraph *G) { ParentGraph = G; }
|
||||
|
||||
|
||||
/// getTargetData - Get the target data object used to construct this node.
|
||||
///
|
||||
const TargetData &getTargetData() const;
|
||||
|
||||
/// getForwardNode - This method returns the node that this node is forwarded
|
||||
/// to, if any.
|
||||
DSNode *getForwardNode() const { return ForwardNH.getNode(); }
|
||||
|
Reference in New Issue
Block a user