[llvm-commits] [llvm] r67526 - in /llvm/trunk/lib: CodeGen/MachineFunction.cpp CodeGen/PseudoSourceValue.cpp CodeGen/SelectionDAG/SelectionDAG.cpp Support/PrettyStackTrace.cpp Target/CppBackend/CPPBackend.cpp Transforms/Utils/LowerSwitch.cpp VMCore/AsmWriter.cpp
Dan Gohman
gohman at apple.com
Mon Mar 23 08:57:19 PDT 2009
Author: djg
Date: Mon Mar 23 10:57:19 2009
New Revision: 67526
URL: http://llvm.org/viewvc/llvm-project?rev=67526&view=rev
Log:
Now that errs() is properly non-buffered, there's no need to
explicitly flush it.
Modified:
llvm/trunk/lib/CodeGen/MachineFunction.cpp
llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/lib/Support/PrettyStackTrace.cpp
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Mon Mar 23 10:57:19 2009
@@ -558,4 +558,4 @@
}
}
-void MachineConstantPool::dump() const { print(errs()); errs().flush(); }
+void MachineConstantPool::dump() const { print(errs()); }
Modified: llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp (original)
+++ llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp Mon Mar 23 10:57:19 2009
@@ -42,7 +42,7 @@
Value(PointerType::getUnqual(Type::Int8Ty), PseudoSourceValueVal) {}
void PseudoSourceValue::dump() const {
- print(errs()); errs() << '\n'; errs().flush();
+ print(errs()); errs() << '\n';
}
void PseudoSourceValue::print(raw_ostream &OS) const {
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Mar 23 10:57:19 2009
@@ -5308,7 +5308,6 @@
void SDNode::dump() const { dump(0); }
void SDNode::dump(const SelectionDAG *G) const {
print(errs(), G);
- errs().flush();
}
void SDNode::print_types(raw_ostream &OS, const SelectionDAG *G) const {
@@ -5544,7 +5543,6 @@
void SDNode::dumpr() const {
VisitedSDNodeSet once;
DumpNodesr(errs(), this, 0, 0, once);
- errs().flush();
}
const Type *ConstantPoolSDNode::getType() const {
Modified: llvm/trunk/lib/Support/PrettyStackTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PrettyStackTrace.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PrettyStackTrace.cpp (original)
+++ llvm/trunk/lib/Support/PrettyStackTrace.cpp Mon Mar 23 10:57:19 2009
@@ -68,7 +68,6 @@
if (!TmpStr.empty()) {
__crashreporter_info__ = strdup(TmpStr.c_str());
errs() << __crashreporter_info__;
- errs().flush();
}
#endif
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Mon Mar 23 10:57:19 2009
@@ -1802,7 +1802,6 @@
Out << "int main(int argc, char**argv) {\n";
Out << " Module* Mod = " << fname << "();\n";
Out << " verifyModule(*Mod, PrintMessageAction);\n";
- Out << " errs().flush();\n";
Out << " outs().flush();\n";
Out << " PassManager PM;\n";
Out << " PM.add(createPrintModulePass(&outs()));\n";
Modified: llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp Mon Mar 23 10:57:19 2009
@@ -147,8 +147,7 @@
CaseRange& Pivot = *(Begin + Mid);
DEBUG(errs() << "Pivot ==> "
<< cast<ConstantInt>(Pivot.Low)->getValue() << " -"
- << cast<ConstantInt>(Pivot.High)->getValue() << "\n";
- errs().flush());
+ << cast<ConstantInt>(Pivot.High)->getValue() << "\n");
BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val,
OrigBlock, Default);
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Mon Mar 23 10:57:19 2009
@@ -1813,18 +1813,17 @@
}
// Value::dump - allow easy printing of Values from the debugger.
-void Value::dump() const { print(errs()); errs() << '\n'; errs().flush(); }
+void Value::dump() const { print(errs()); errs() << '\n'; }
// Type::dump - allow easy printing of Types from the debugger.
// This one uses type names from the given context module
void Type::dump(const Module *Context) const {
WriteTypeSymbolic(errs(), this, Context);
errs() << '\n';
- errs().flush();
}
// Type::dump - allow easy printing of Types from the debugger.
void Type::dump() const { dump(0); }
// Module::dump() - Allow printing of Modules from the debugger.
-void Module::dump() const { print(errs(), 0); errs().flush(); }
+void Module::dump() const { print(errs(), 0); }
More information about the llvm-commits
mailing list