diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-24 23:01:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-24 23:01:50 +0000 |
commit | 29a5df81e4bbdf0f5ecf22a4646ed6872f0b1f45 (patch) | |
tree | 617b1d7a6db6d920ff96d1b6dc62e638fd7f2f42 /llvm/lib/CodeGen | |
parent | 43373a6868ced6f4009ed92caa704486fbafd574 (diff) | |
download | bcm5719-llvm-29a5df81e4bbdf0f5ecf22a4646ed6872f0b1f45.tar.gz bcm5719-llvm-29a5df81e4bbdf0f5ecf22a4646ed6872f0b1f45.zip |
* Silence signed/unsigned warnings
* Make it compile with GCC 3.0.4
llvm-svn: 1787
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedPriorities.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp index edf84d4cadc..dafa8353bb3 100644 --- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -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]; } diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h index 7cfc4c0f354..52b5b9f0080 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h @@ -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; |