Add #include <cstdlib> and abort() to silence a warning
llvm-svn: 15413
This commit is contained in:
parent
8481785391
commit
a297dc2480
|
@ -1,4 +1,4 @@
|
||||||
//===-- MSchedGraph.cpp - Scheduling Graph ------------------------*- C++ -*-===//
|
//===-- MSchedGraph.cpp - Scheduling Graph ----------------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
|
@ -17,6 +17,7 @@
|
||||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||||
#include "llvm/Target/TargetInstrInfo.h"
|
#include "llvm/Target/TargetInstrInfo.h"
|
||||||
#include "Support/Debug.h"
|
#include "Support/Debug.h"
|
||||||
|
#include <cstdlib>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
MSchedGraphNode::MSchedGraphNode(const MachineInstr* inst,
|
MSchedGraphNode::MSchedGraphNode(const MachineInstr* inst,
|
||||||
|
@ -35,13 +36,13 @@ void MSchedGraphNode::print(std::ostream &os) const {
|
||||||
MSchedGraphEdge MSchedGraphNode::getInEdge(MSchedGraphNode *pred) {
|
MSchedGraphEdge MSchedGraphNode::getInEdge(MSchedGraphNode *pred) {
|
||||||
//Loop over all the successors of our predecessor
|
//Loop over all the successors of our predecessor
|
||||||
//return the edge the corresponds to this in edge
|
//return the edge the corresponds to this in edge
|
||||||
for(MSchedGraphNode::succ_iterator I = pred->succ_begin(), E = pred->succ_end();
|
for (MSchedGraphNode::succ_iterator I = pred->succ_begin(),
|
||||||
I != E; ++I) {
|
E = pred->succ_end(); I != E; ++I) {
|
||||||
if(*I == this)
|
if (*I == this)
|
||||||
return I.getEdge();
|
return I.getEdge();
|
||||||
}
|
}
|
||||||
assert(0 && "Should have found edge between this node and its predecessor!");
|
assert(0 && "Should have found edge between this node and its predecessor!");
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned MSchedGraphNode::getInEdgeNum(MSchedGraphNode *pred) {
|
unsigned MSchedGraphNode::getInEdgeNum(MSchedGraphNode *pred) {
|
||||||
|
|
Loading…
Reference in New Issue