aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SystemZ
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-05 00:49:25 +0000
committerDan Gohman <gohman@apple.com>2009-08-05 00:49:25 +0000
commit1c55fab53455f11fbd7bde69d0c5911031218e35 (patch)
treed08d72d418a2557e0312f510dc0b56cbd8d6dcef /lib/Target/SystemZ
parent4a3d35abefa3a1f6558ef88b25f2a320c76d5328 (diff)
downloadexternal_llvm-1c55fab53455f11fbd7bde69d0c5911031218e35.zip
external_llvm-1c55fab53455f11fbd7bde69d0c5911031218e35.tar.gz
external_llvm-1c55fab53455f11fbd7bde69d0c5911031218e35.tar.bz2
Don't flush the raw_ostream between each MachineFunction. These flush
calls were originally put in place because errs() at one time was not unbuffered, and these print routines are commonly used with errs() for debugging. However, errs() is now properly unbuffered, so the flush calls are no longer needed. This significantly reduces the number of write(2) calls for regular asm printing when there are many small functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r--lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
index ef64eb8..b823968 100644
--- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
+++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
@@ -144,8 +144,6 @@ bool SystemZAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
// Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
- O.flush();
-
// We didn't modify anything
return false;
}