summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-17 07:36:54 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-17 07:36:54 +0000
commit9be7ac1d8c3f7c1f44916361ff714822ae572c33 (patch)
treef1afbeb2bf22340ee8598986e0ab29c8e17f1d0d /lib/Analysis
parent5294fb0b3fda7f14b83fd34f62116f1c5f499ba2 (diff)
downloadllvm-9be7ac1d8c3f7c1f44916361ff714822ae572c33.tar.gz
llvm-9be7ac1d8c3f7c1f44916361ff714822ae572c33.tar.bz2
llvm-9be7ac1d8c3f7c1f44916361ff714822ae572c33.tar.xz
Replaced DEBUG(std::cerr with DOUT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/IPA/Andersens.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp
index 30ec89b692..dd94b3832d 100644
--- a/lib/Analysis/IPA/Andersens.cpp
+++ b/lib/Analysis/IPA/Andersens.cpp
@@ -1036,7 +1036,7 @@ void Andersens::SolveConstraints() {
while (Changed) {
Changed = false;
++NumIters;
- DEBUG(std::cerr << "Starting iteration #" << Iteration++ << "!\n");
+ DOUT << "Starting iteration #" << Iteration++ << "!\n";
// Loop over all of the constraints, applying them in turn.
for (unsigned i = 0, e = Constraints.size(); i != e; ++i) {
@@ -1069,8 +1069,7 @@ void Andersens::SolveConstraints() {
// We found a function that is just now escaping. Mark it as if it
// didn't have internal linkage.
AddConstraintsForNonInternalLinkage(F);
- DEBUG(std::cerr << "Found escaping internal function: "
- << F->getName() << "\n");
+ DOUT << "Found escaping internal function: " << F->getName() <<"\n";
++NumEscapingFunctions;
}
@@ -1088,9 +1087,9 @@ void Andersens::SolveConstraints() {
if (IP == KnownCallees.end() || *IP != F) {
// Add the constraints for the call now.
AddConstraintsForCall(CS, F);
- DEBUG(std::cerr << "Found actual callee '"
- << F->getName() << "' for call: "
- << *CS.getInstruction() << "\n");
+ DOUT << "Found actual callee '"
+ << F->getName() << "' for call: "
+ << *CS.getInstruction() << "\n";
++NumIndirectCallees;
KnownCallees.insert(IP, F);
}