aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-24 23:01:56 +0000
committerChris Lattner <sabre@nondot.org>2002-02-24 23:01:56 +0000
commitb91ca1f7d69172713e44fc04ce46a4db7dd64739 (patch)
tree3bf790d974aa1e8566df693c552588c4679428e1 /lib
parentdfb8b95c2d94d71ec8dd6aae27130b5b485b4718 (diff)
downloadexternal_llvm-b91ca1f7d69172713e44fc04ce46a4db7dd64739.zip
external_llvm-b91ca1f7d69172713e44fc04ce46a4db7dd64739.tar.gz
external_llvm-b91ca1f7d69172713e44fc04ce46a4db7dd64739.tar.bz2
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineFunction.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 4bb17f1..7eb90ab 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -15,6 +15,7 @@
#include "llvm/BasicBlock.h"
#include "llvm/iOther.h"
#include <limits.h>
+#include <iostream>
const int INVALID_FRAME_OFFSET = INT_MAX; // std::numeric_limits<int>::max();
@@ -283,19 +284,17 @@ MachineCodeForMethod::getOffset(const Value* val) const
void
MachineCodeForMethod::dump() const
{
- cerr << "\n" << method->getReturnType()
- << " \"" << method->getName() << "\"\n";
+ std::cerr << "\n" << method->getReturnType()
+ << " \"" << method->getName() << "\"\n";
for (Method::const_iterator BI = method->begin(); BI != method->end(); ++BI)
{
BasicBlock* bb = *BI;
- cerr << "\n"
- << (bb->hasName()? bb->getName() : "Label")
- << " (" << bb << ")" << ":\n";
+ std::cerr << "\n" << bb->getName() << " (" << bb << ")" << ":\n";
MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec();
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";
}