Remove using declaration

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-20 20:38:17 +00:00
parent 60f1445cf2
commit 0beae0cdac
2 changed files with 22 additions and 26 deletions

View File

@ -21,8 +21,6 @@
/// BROKEN: Should not include sparc stuff directly into here
#include "../../Target/Sparc/SparcInternals.h" // Only for PHI defn
using std::cerr;
static AnnotationID AID(AnnotationManager::getID("Analysis::BBLiveVar"));
BBLiveVar *BBLiveVar::CreateOnBB(const BasicBlock &BB, MachineBasicBlock &MBB,
@ -63,9 +61,9 @@ void BBLiveVar::calcDefUseSets() {
const MachineInstr *MI = *MII;
if (DEBUG_LV >= LV_DEBUG_Verbose) {
cerr << " *Iterating over machine instr ";
std::cerr << " *Iterating over machine instr ";
MI->dump();
cerr << "\n";
std::cerr << "\n";
}
// iterate over MI operands to find defs
@ -105,8 +103,8 @@ void BBLiveVar::calcDefUseSets() {
PredToEdgeInSetMap[PredBB].insert(ArgVal);
if (DEBUG_LV >= LV_DEBUG_Verbose)
cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
<< RAV(PredBB) << "\n";
std::cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
<< RAV(PredBB) << "\n";
} // if( IsPhi )
else {
// It is not a Phi use: add to regular use set and remove later defs.
@ -139,7 +137,7 @@ void BBLiveVar::addDef(const Value *Op) {
InSet.erase(Op); // this definition kills any later uses
InSetChanged = true;
if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " +Def: " << RAV(Op) << "\n";
if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " +Def: " << RAV(Op) << "\n";
}
@ -151,7 +149,7 @@ void BBLiveVar::addUse(const Value *Op) {
DefSet.erase(Op); // remove if there is a def below this use
InSetChanged = true;
if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " Use: " << RAV(Op) << "\n";
if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " Use: " << RAV(Op) << "\n";
}
@ -238,14 +236,14 @@ bool BBLiveVar::applyFlowFunc() {
// ----------------- Methods For Debugging (Printing) -----------------
void BBLiveVar::printAllSets() const {
cerr << " Defs: "; printSet(DefSet); cerr << "\n";
cerr << " In: "; printSet(InSet); cerr << "\n";
cerr << " Out: "; printSet(OutSet); cerr << "\n";
std::cerr << " Defs: "; printSet(DefSet); std::cerr << "\n";
std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
}
void BBLiveVar::printInOutSets() const {
cerr << " In: "; printSet(InSet); cerr << "\n";
cerr << " Out: "; printSet(OutSet); cerr << "\n";
std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
}

View File

@ -21,8 +21,6 @@
/// BROKEN: Should not include sparc stuff directly into here
#include "../../Target/Sparc/SparcInternals.h" // Only for PHI defn
using std::cerr;
static AnnotationID AID(AnnotationManager::getID("Analysis::BBLiveVar"));
BBLiveVar *BBLiveVar::CreateOnBB(const BasicBlock &BB, MachineBasicBlock &MBB,
@ -63,9 +61,9 @@ void BBLiveVar::calcDefUseSets() {
const MachineInstr *MI = *MII;
if (DEBUG_LV >= LV_DEBUG_Verbose) {
cerr << " *Iterating over machine instr ";
std::cerr << " *Iterating over machine instr ";
MI->dump();
cerr << "\n";
std::cerr << "\n";
}
// iterate over MI operands to find defs
@ -105,8 +103,8 @@ void BBLiveVar::calcDefUseSets() {
PredToEdgeInSetMap[PredBB].insert(ArgVal);
if (DEBUG_LV >= LV_DEBUG_Verbose)
cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
<< RAV(PredBB) << "\n";
std::cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
<< RAV(PredBB) << "\n";
} // if( IsPhi )
else {
// It is not a Phi use: add to regular use set and remove later defs.
@ -139,7 +137,7 @@ void BBLiveVar::addDef(const Value *Op) {
InSet.erase(Op); // this definition kills any later uses
InSetChanged = true;
if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " +Def: " << RAV(Op) << "\n";
if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " +Def: " << RAV(Op) << "\n";
}
@ -151,7 +149,7 @@ void BBLiveVar::addUse(const Value *Op) {
DefSet.erase(Op); // remove if there is a def below this use
InSetChanged = true;
if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " Use: " << RAV(Op) << "\n";
if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " Use: " << RAV(Op) << "\n";
}
@ -238,14 +236,14 @@ bool BBLiveVar::applyFlowFunc() {
// ----------------- Methods For Debugging (Printing) -----------------
void BBLiveVar::printAllSets() const {
cerr << " Defs: "; printSet(DefSet); cerr << "\n";
cerr << " In: "; printSet(InSet); cerr << "\n";
cerr << " Out: "; printSet(OutSet); cerr << "\n";
std::cerr << " Defs: "; printSet(DefSet); std::cerr << "\n";
std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
}
void BBLiveVar::printInOutSets() const {
cerr << " In: "; printSet(InSet); cerr << "\n";
cerr << " Out: "; printSet(OutSet); cerr << "\n";
std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
}