mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
* Fix privacy issues on RegToRefVecMap
* Fix initialization order problems... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b98c5c6c3
commit
80c685ff15
@ -31,7 +31,7 @@ typedef vector< pair<SchedGraphNode*, unsigned int> > RefVec;
|
||||
|
||||
// The following needs to be a class, not a typedef, so we can use
|
||||
// an opaque declaration in SchedGraph.h
|
||||
class RegToRefVecMap: public hash_map<int, RefVec> {
|
||||
struct RegToRefVecMap: public hash_map<int, RefVec> {
|
||||
typedef hash_map<int, RefVec>:: iterator iterator;
|
||||
typedef hash_map<int, RefVec>::const_iterator const_iterator;
|
||||
};
|
||||
@ -50,8 +50,8 @@ SchedGraphEdge::SchedGraphEdge(SchedGraphNode* _src,
|
||||
sink(_sink),
|
||||
depType(_depType),
|
||||
depOrderType(_depOrderType),
|
||||
val(NULL),
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency())
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency()),
|
||||
val(NULL)
|
||||
{
|
||||
src->addOutEdge(this);
|
||||
sink->addInEdge(this);
|
||||
@ -68,8 +68,8 @@ SchedGraphEdge::SchedGraphEdge(SchedGraphNode* _src,
|
||||
sink(_sink),
|
||||
depType(DefUseDep),
|
||||
depOrderType(_depOrderType),
|
||||
val(_val),
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency())
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency()),
|
||||
val(_val)
|
||||
{
|
||||
src->addOutEdge(this);
|
||||
sink->addInEdge(this);
|
||||
|
@ -31,7 +31,7 @@ typedef vector< pair<SchedGraphNode*, unsigned int> > RefVec;
|
||||
|
||||
// The following needs to be a class, not a typedef, so we can use
|
||||
// an opaque declaration in SchedGraph.h
|
||||
class RegToRefVecMap: public hash_map<int, RefVec> {
|
||||
struct RegToRefVecMap: public hash_map<int, RefVec> {
|
||||
typedef hash_map<int, RefVec>:: iterator iterator;
|
||||
typedef hash_map<int, RefVec>::const_iterator const_iterator;
|
||||
};
|
||||
@ -50,8 +50,8 @@ SchedGraphEdge::SchedGraphEdge(SchedGraphNode* _src,
|
||||
sink(_sink),
|
||||
depType(_depType),
|
||||
depOrderType(_depOrderType),
|
||||
val(NULL),
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency())
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency()),
|
||||
val(NULL)
|
||||
{
|
||||
src->addOutEdge(this);
|
||||
sink->addInEdge(this);
|
||||
@ -68,8 +68,8 @@ SchedGraphEdge::SchedGraphEdge(SchedGraphNode* _src,
|
||||
sink(_sink),
|
||||
depType(DefUseDep),
|
||||
depOrderType(_depOrderType),
|
||||
val(_val),
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency())
|
||||
minDelay((_minDelay >= 0)? _minDelay : _src->getLatency()),
|
||||
val(_val)
|
||||
{
|
||||
src->addOutEdge(this);
|
||||
sink->addInEdge(this);
|
||||
|
Loading…
Reference in New Issue
Block a user