forked from OSchip/llvm-project
Remove two using decls
Remove usage of alloca llvm-svn: 6725
This commit is contained in:
parent
40edaa707f
commit
5b7e3cae42
|
@ -21,9 +21,6 @@
|
||||||
#include "llvm/Type.h"
|
#include "llvm/Type.h"
|
||||||
#include "llvm/CodeGen/MachineInstr.h"
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
#include "Support/STLExtras.h"
|
#include "Support/STLExtras.h"
|
||||||
#include "Support/Alloca.h"
|
|
||||||
using std::cerr;
|
|
||||||
using std::vector;
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
// class InstrTreeNode
|
// class InstrTreeNode
|
||||||
|
@ -117,8 +114,8 @@ void
|
||||||
InstructionNode::dumpNode(int indent) const
|
InstructionNode::dumpNode(int indent) const
|
||||||
{
|
{
|
||||||
for (int i=0; i < indent; i++)
|
for (int i=0; i < indent; i++)
|
||||||
cerr << " ";
|
std::cerr << " ";
|
||||||
cerr << getInstruction()->getOpcodeName()
|
std::cerr << getInstruction()->getOpcodeName()
|
||||||
<< " [label " << getOpLabel() << "]" << "\n";
|
<< " [label " << getOpLabel() << "]" << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,9 +124,9 @@ void
|
||||||
VRegListNode::dumpNode(int indent) const
|
VRegListNode::dumpNode(int indent) const
|
||||||
{
|
{
|
||||||
for (int i=0; i < indent; i++)
|
for (int i=0; i < indent; i++)
|
||||||
cerr << " ";
|
std::cerr << " ";
|
||||||
|
|
||||||
cerr << "List" << "\n";
|
std::cerr << "List" << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -137,9 +134,9 @@ void
|
||||||
VRegNode::dumpNode(int indent) const
|
VRegNode::dumpNode(int indent) const
|
||||||
{
|
{
|
||||||
for (int i=0; i < indent; i++)
|
for (int i=0; i < indent; i++)
|
||||||
cerr << " ";
|
std::cerr << " ";
|
||||||
|
|
||||||
cerr << "VReg " << getValue() << "\t(type "
|
std::cerr << "VReg " << getValue() << "\t(type "
|
||||||
<< (int) getValue()->getValueType() << ")" << "\n";
|
<< (int) getValue()->getValueType() << ")" << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,9 +144,9 @@ void
|
||||||
ConstantNode::dumpNode(int indent) const
|
ConstantNode::dumpNode(int indent) const
|
||||||
{
|
{
|
||||||
for (int i=0; i < indent; i++)
|
for (int i=0; i < indent; i++)
|
||||||
cerr << " ";
|
std::cerr << " ";
|
||||||
|
|
||||||
cerr << "Constant " << getValue() << "\t(type "
|
std::cerr << "Constant " << getValue() << "\t(type "
|
||||||
<< (int) getValue()->getValueType() << ")" << "\n";
|
<< (int) getValue()->getValueType() << ")" << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,9 +154,9 @@ void
|
||||||
LabelNode::dumpNode(int indent) const
|
LabelNode::dumpNode(int indent) const
|
||||||
{
|
{
|
||||||
for (int i=0; i < indent; i++)
|
for (int i=0; i < indent; i++)
|
||||||
cerr << " ";
|
std::cerr << " ";
|
||||||
|
|
||||||
cerr << "Label " << getValue() << "\n";
|
std::cerr << "Label " << getValue() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
@ -258,8 +255,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr)
|
||||||
// if a fixed array is too small.
|
// if a fixed array is too small.
|
||||||
//
|
//
|
||||||
int numChildren = 0;
|
int numChildren = 0;
|
||||||
InstrTreeNode **childArray =
|
std::vector<InstrTreeNode*> childArray(instr->getNumOperands());
|
||||||
(InstrTreeNode **)alloca(instr->getNumOperands()*sizeof(InstrTreeNode *));
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Walk the operands of the instruction
|
// Walk the operands of the instruction
|
||||||
|
|
Loading…
Reference in New Issue