mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 21:50:29 +00:00
* Make it compile with GCC 3.0.4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dfb8b95c2d
commit
b91ca1f7d6
@ -15,6 +15,7 @@
|
|||||||
#include "llvm/BasicBlock.h"
|
#include "llvm/BasicBlock.h"
|
||||||
#include "llvm/iOther.h"
|
#include "llvm/iOther.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
const int INVALID_FRAME_OFFSET = INT_MAX; // std::numeric_limits<int>::max();
|
const int INVALID_FRAME_OFFSET = INT_MAX; // std::numeric_limits<int>::max();
|
||||||
|
|
||||||
@ -283,19 +284,17 @@ MachineCodeForMethod::getOffset(const Value* val) const
|
|||||||
void
|
void
|
||||||
MachineCodeForMethod::dump() const
|
MachineCodeForMethod::dump() const
|
||||||
{
|
{
|
||||||
cerr << "\n" << method->getReturnType()
|
std::cerr << "\n" << method->getReturnType()
|
||||||
<< " \"" << method->getName() << "\"\n";
|
<< " \"" << method->getName() << "\"\n";
|
||||||
|
|
||||||
for (Method::const_iterator BI = method->begin(); BI != method->end(); ++BI)
|
for (Method::const_iterator BI = method->begin(); BI != method->end(); ++BI)
|
||||||
{
|
{
|
||||||
BasicBlock* bb = *BI;
|
BasicBlock* bb = *BI;
|
||||||
cerr << "\n"
|
std::cerr << "\n" << bb->getName() << " (" << bb << ")" << ":\n";
|
||||||
<< (bb->hasName()? bb->getName() : "Label")
|
|
||||||
<< " (" << bb << ")" << ":\n";
|
|
||||||
|
|
||||||
MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec();
|
MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec();
|
||||||
for (unsigned i=0; i < mvec.size(); i++)
|
for (unsigned i=0; i < mvec.size(); i++)
|
||||||
cerr << "\t" << *mvec[i];
|
std::cerr << "\t" << *mvec[i];
|
||||||
}
|
}
|
||||||
cerr << "\nEnd method \"" << method->getName() << "\"\n\n";
|
std::cerr << "\nEnd method \"" << method->getName() << "\"\n\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user