* Silence signed/unsigned warnings
authorChris Lattner <sabre@nondot.org>
Sun, 24 Feb 2002 23:01:50 +0000 (23:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Feb 2002 23:01:50 +0000 (23:01 +0000)
* 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

lib/CodeGen/InstrSched/InstrScheduling.cpp
lib/CodeGen/InstrSched/SchedPriorities.h
lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
lib/Target/SparcV9/InstrSched/SchedPriorities.h

index edf84d4cadc9c7a344639a20ce71c5d23dd02d51..dafa8353bb3e837a2dee50bf4d5c19e14b9cfcd7 100644 (file)
@@ -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];
   }
   
index 7cfc4c0f3543bdda87e50ecae96e6142f1e0afb9..52b5b9f00807b8893bf5cfbc59c44ee73537312b 100644 (file)
@@ -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;
index edf84d4cadc9c7a344639a20ce71c5d23dd02d51..dafa8353bb3e837a2dee50bf4d5c19e14b9cfcd7 100644 (file)
@@ -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];
   }
   
index 7cfc4c0f3543bdda87e50ecae96e6142f1e0afb9..52b5b9f00807b8893bf5cfbc59c44ee73537312b 100644 (file)
@@ -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;