summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-09 00:50:40 +0000
committerDan Gohman <gohman@apple.com>2008-07-09 00:50:40 +0000
commit0af822508823b7f1602a2f32a5f75de170d649aa (patch)
tree04661ae856e3e2b73a926ff59617c0d3669da3f2 /lib/VMCore
parenta5e27f80282d240817d651347a2ddc80a03ee9ce (diff)
downloadllvm-0af822508823b7f1602a2f32a5f75de170d649aa.tar.gz
llvm-0af822508823b7f1602a2f32a5f75de170d649aa.tar.bz2
llvm-0af822508823b7f1602a2f32a5f75de170d649aa.tar.xz
Consistently put quotes around pass names in debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/PassManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index 1eca64fb36..e2baecb6fc 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -628,7 +628,7 @@ void PMDataManager::verifyDomInfo(Pass &P, Function &F) {
OtherDT.getBase().recalculate(F);
if (DT->compare(OtherDT)) {
cerr << "Dominator Information for " << F.getNameStart() << "\n";
- cerr << "Pass " << P.getPassName() << "\n";
+ cerr << "Pass '" << P.getPassName() << "'\n";
cerr << "----- Valid -----\n";
OtherDT.dump();
cerr << "----- Invalid -----\n";
@@ -645,7 +645,7 @@ void PMDataManager::verifyDomInfo(Pass &P, Function &F) {
OtherDF.calculate(*DT, DT->getNode(DTRoots[0]));
if (DF->compare(OtherDF)) {
cerr << "Dominator Information for " << F.getNameStart() << "\n";
- cerr << "Pass " << P.getPassName() << "\n";
+ cerr << "Pass '" << P.getPassName() << "'\n";
cerr << "----- Valid -----\n";
OtherDF.dump();
cerr << "----- Invalid -----\n";
@@ -672,8 +672,8 @@ void PMDataManager::removeNotPreservedAnalysis(Pass *P) {
AvailableAnalysis.erase(Info);
if (PassDebugging >= Details) {
Pass *S = Info->second;
- cerr << " -- " << P->getPassName() << " is not preserving ";
- cerr << S->getPassName() << "\n";
+ cerr << " -- '" << P->getPassName() << "' is not preserving '";
+ cerr << S->getPassName() << "'\n";
}
}
}
@@ -711,8 +711,8 @@ void PMDataManager::removeDeadPasses(Pass *P, const char *Msg,
TPM->collectLastUses(DeadPasses, P);
if (PassDebugging >= Details && !DeadPasses.empty()) {
- cerr << " -*- " << P->getPassName();
- cerr << " is the last user of following pass instances.";
+ cerr << " -*- '" << P->getPassName();
+ cerr << "' is the last user of following pass instances.";
cerr << " Free these instances\n";
}
@@ -984,8 +984,8 @@ void PMDataManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) {
// checks whether any lower level manager will be able to provide this
// analysis info on demand or not.
#ifndef NDEBUG
- cerr << "Unable to schedule " << RequiredPass->getPassName();
- cerr << " required by " << P->getPassName() << "\n";
+ cerr << "Unable to schedule '" << RequiredPass->getPassName();
+ cerr << "' required by '" << P->getPassName() << "'\n";
#endif
assert (0 && "Unable to schedule pass");
}