aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-24 23:01:50 +0000
committerChris Lattner <sabre@nondot.org>2002-02-24 23:01:50 +0000
commitdfb8b95c2d94d71ec8dd6aae27130b5b485b4718 (patch)
tree0e187c243985257b60841aa330ecff1a98fc27f2 /lib
parent1ddf664f743f3c8d2ff220888386a9b84396dcab (diff)
downloadexternal_llvm-dfb8b95c2d94d71ec8dd6aae27130b5b485b4718.zip
external_llvm-dfb8b95c2d94d71ec8dd6aae27130b5b485b4718.tar.gz
external_llvm-dfb8b95c2d94d71ec8dd6aae27130b5b485b4718.tar.bz2
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/InstrSched/InstrScheduling.cpp4
-rw-r--r--lib/CodeGen/InstrSched/SchedPriorities.h3
-rw-r--r--lib/Target/SparcV9/InstrSched/InstrScheduling.cpp4
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedPriorities.h3
4 files changed, 8 insertions, 6 deletions
diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp
index edf84d4..dafa835 100644
--- a/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/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/lib/CodeGen/InstrSched/SchedPriorities.h b/lib/CodeGen/InstrSched/SchedPriorities.h
index 7cfc4c0..52b5b9f 100644
--- a/lib/CodeGen/InstrSched/SchedPriorities.h
+++ b/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;
diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
index edf84d4..dafa835 100644
--- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
+++ b/lib/Target/SparcV9/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/lib/Target/SparcV9/InstrSched/SchedPriorities.h b/lib/Target/SparcV9/InstrSched/SchedPriorities.h
index 7cfc4c0..52b5b9f 100644
--- a/lib/Target/SparcV9/InstrSched/SchedPriorities.h
+++ b/lib/Target/SparcV9/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;