summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ModuloScheduling
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-08-02 14:02:21 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-08-02 14:02:21 +0000
commita297dc2480bb77845803625fdced114878412eca (patch)
tree93f4a3f42c36a22ccb9d2c9d41f6a2e651a9c88c /llvm/lib/CodeGen/ModuloScheduling
parent8481785391453b050796a1cfebdbd61aac151355 (diff)
downloadbcm5719-llvm-a297dc2480bb77845803625fdced114878412eca.tar.gz
bcm5719-llvm-a297dc2480bb77845803625fdced114878412eca.zip
Add #include <cstdlib> and abort() to silence a warning
llvm-svn: 15413
Diffstat (limited to 'llvm/lib/CodeGen/ModuloScheduling')
-rw-r--r--llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp b/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp
index 9dd955d7446..6bee44d934a 100644
--- a/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp
+++ b/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp
@@ -1,4 +1,4 @@
-//===-- MSchedGraph.cpp - Scheduling Graph ------------------------*- C++ -*-===//
+//===-- MSchedGraph.cpp - Scheduling Graph ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -17,6 +17,7 @@
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "Support/Debug.h"
+#include <cstdlib>
using namespace llvm;
MSchedGraphNode::MSchedGraphNode(const MachineInstr* inst,
@@ -35,13 +36,13 @@ void MSchedGraphNode::print(std::ostream &os) const {
MSchedGraphEdge MSchedGraphNode::getInEdge(MSchedGraphNode *pred) {
//Loop over all the successors of our predecessor
//return the edge the corresponds to this in edge
- for(MSchedGraphNode::succ_iterator I = pred->succ_begin(), E = pred->succ_end();
- I != E; ++I) {
- if(*I == this)
+ for (MSchedGraphNode::succ_iterator I = pred->succ_begin(),
+ E = pred->succ_end(); I != E; ++I) {
+ if (*I == this)
return I.getEdge();
}
assert(0 && "Should have found edge between this node and its predecessor!");
-
+ abort();
}
unsigned MSchedGraphNode::getInEdgeNum(MSchedGraphNode *pred) {
OpenPOWER on IntegriCloud