mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
* Silence signed/unsigned warnings
* Make it compile with GCC 3.0.4 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ddf664f74
commit
dfb8b95c2d
@ -161,7 +161,7 @@ public: // accessor functions to query chosen schedule
|
||||
}
|
||||
|
||||
inline InstrGroup* getIGroup (cycles_t c) {
|
||||
if (c >= groups.size())
|
||||
if ((unsigned)c >= groups.size())
|
||||
groups.resize(c+1);
|
||||
if (groups[c] == NULL)
|
||||
groups[c] = new InstrGroup(nslots);
|
||||
@ -169,7 +169,7 @@ public: // accessor functions to query chosen schedule
|
||||
}
|
||||
|
||||
inline const InstrGroup* getIGroup (cycles_t c) const {
|
||||
assert(c < groups.size());
|
||||
assert((unsigned)c < groups.size());
|
||||
return groups[c];
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,8 @@
|
||||
#include "llvm/Target/MachineSchedInfo.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include <list>
|
||||
#include <hash_set>
|
||||
#include <ext/hash_set>
|
||||
#include <ostream>
|
||||
class Method;
|
||||
class MachineInstr;
|
||||
class SchedulingManager;
|
||||
|
@ -161,7 +161,7 @@ public: // accessor functions to query chosen schedule
|
||||
}
|
||||
|
||||
inline InstrGroup* getIGroup (cycles_t c) {
|
||||
if (c >= groups.size())
|
||||
if ((unsigned)c >= groups.size())
|
||||
groups.resize(c+1);
|
||||
if (groups[c] == NULL)
|
||||
groups[c] = new InstrGroup(nslots);
|
||||
@ -169,7 +169,7 @@ public: // accessor functions to query chosen schedule
|
||||
}
|
||||
|
||||
inline const InstrGroup* getIGroup (cycles_t c) const {
|
||||
assert(c < groups.size());
|
||||
assert((unsigned)c < groups.size());
|
||||
return groups[c];
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,8 @@
|
||||
#include "llvm/Target/MachineSchedInfo.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include <list>
|
||||
#include <hash_set>
|
||||
#include <ext/hash_set>
|
||||
#include <ostream>
|
||||
class Method;
|
||||
class MachineInstr;
|
||||
class SchedulingManager;
|
||||
|
Loading…
Reference in New Issue
Block a user