diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-05 00:49:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-05 00:49:25 +0000 |
commit | 1c55fab53455f11fbd7bde69d0c5911031218e35 (patch) | |
tree | d08d72d418a2557e0312f510dc0b56cbd8d6dcef /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | 4a3d35abefa3a1f6558ef88b25f2a320c76d5328 (diff) |
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/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index aea38cad03..2f56c2a955 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -284,8 +284,6 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out jump tables referenced by the function. EmitJumpTableInfo(MF.getJumpTableInfo(), MF); - O.flush(); - // We didn't modify anything. return false; } |