[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp CFGPrinter.cpp Trace.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 5 22:16:39 PST 2006
Changes in directory llvm/lib/Analysis:
AliasAnalysisCounter.cpp updated: 1.16 -> 1.17
AliasAnalysisEvaluator.cpp updated: 1.29 -> 1.30
CFGPrinter.cpp updated: 1.19 -> 1.20
Trace.cpp updated: 1.3 -> 1.4
---
Log message:
Remove the 'printname' argument to WriteAsOperand. It is always true, and
passing false would make the asmprinter fail anyway.
---
Diffs of the changes: (+9 -9)
AliasAnalysisCounter.cpp | 6 +++---
AliasAnalysisEvaluator.cpp | 6 +++---
CFGPrinter.cpp | 4 ++--
Trace.cpp | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.16 llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.17
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.16 Tue Nov 28 16:46:12 2006
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp Wed Dec 6 00:16:21 2006
@@ -135,9 +135,9 @@
if (PrintAll || (PrintAllFailures && R == MayAlias)) {
llvm_cerr << AliasString << ":\t";
llvm_cerr << "[" << V1Size << "B] ";
- WriteAsOperand(std::cerr, V1, true, true, M) << ", ";
+ WriteAsOperand(std::cerr, V1, true, M) << ", ";
llvm_cerr << "[" << V2Size << "B] ";
- WriteAsOperand(std::cerr, V2, true, true, M) << "\n";
+ WriteAsOperand(std::cerr, V2, true, M) << "\n";
}
return R;
@@ -159,7 +159,7 @@
if (PrintAll || (PrintAllFailures && R == ModRef)) {
llvm_cerr << MRString << ": Ptr: ";
llvm_cerr << "[" << Size << "B] ";
- WriteAsOperand(std::cerr, P, true, true, M);
+ WriteAsOperand(std::cerr, P, true, M);
llvm_cerr << "\t<->" << *CS.getInstruction();
}
return R;
Index: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff -u llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.29 llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.30
--- llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.29 Tue Nov 28 16:46:12 2006
+++ llvm/lib/Analysis/AliasAnalysisEvaluator.cpp Wed Dec 6 00:16:21 2006
@@ -80,8 +80,8 @@
Module *M) {
if (P) {
llvm_cerr << " " << Msg << ":\t";
- WriteAsOperand(std::cerr, V1, true, true, M) << ", ";
- WriteAsOperand(std::cerr, V2, true, true, M) << "\n";
+ WriteAsOperand(std::cerr, V1, true, M) << ", ";
+ WriteAsOperand(std::cerr, V2, true, M) << "\n";
}
}
@@ -90,7 +90,7 @@
Module *M) {
if (P) {
llvm_cerr << " " << Msg << ": Ptr: ";
- WriteAsOperand(std::cerr, Ptr, true, true, M);
+ WriteAsOperand(std::cerr, Ptr, true, M);
llvm_cerr << "\t<->" << *I;
}
}
Index: llvm/lib/Analysis/CFGPrinter.cpp
diff -u llvm/lib/Analysis/CFGPrinter.cpp:1.19 llvm/lib/Analysis/CFGPrinter.cpp:1.20
--- llvm/lib/Analysis/CFGPrinter.cpp:1.19 Tue Nov 28 16:46:12 2006
+++ llvm/lib/Analysis/CFGPrinter.cpp Wed Dec 6 00:16:21 2006
@@ -50,12 +50,12 @@
std::ostringstream Out;
if (CFGOnly) {
- WriteAsOperand(Out, Node, false, true);
+ WriteAsOperand(Out, Node, false);
return Out.str();
}
if (Node->getName().empty()) {
- WriteAsOperand(Out, Node, false, true);
+ WriteAsOperand(Out, Node, false);
Out << ":";
}
Index: llvm/lib/Analysis/Trace.cpp
diff -u llvm/lib/Analysis/Trace.cpp:1.3 llvm/lib/Analysis/Trace.cpp:1.4
--- llvm/lib/Analysis/Trace.cpp:1.3 Tue Nov 28 16:46:12 2006
+++ llvm/lib/Analysis/Trace.cpp Wed Dec 6 00:16:21 2006
@@ -38,7 +38,7 @@
for (const_iterator i = begin(), e = end(); i != e; ++i) {
O << "; ";
if (O.stream())
- WriteAsOperand(*O.stream(), *i, true, true, getModule());
+ WriteAsOperand(*O.stream(), *i, true, getModule());
O << "\n";
}
O << "; Trace parent function: \n" << *F;
More information about the llvm-commits
mailing list