llvm.org GIT mirror llvm / 1c55fab
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 Dan Gohman 11 years ago
6 changed file(s) with 0 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
329329 // Emit post-function debug information.
330330 DW->EndFunction(&MF);
331331
332 O.flush();
333
334332 return false;
335333 }
336334
133133 if (TAI->hasDotTypeDotSizeDirective())
134134 O << "\t.size\t" << CurrentFnName << ", .-" << CurrentFnName << '\n';
135135
136 O.flush();
137
138136 // We didn't modify anything
139137 return false;
140138 }
645645 // Emit post-function debug information.
646646 DW->EndFunction(&MF);
647647
648 O.flush();
649
650648 // We didn't modify anything.
651649 return false;
652650 }
143143 // Print out jump tables referenced by the function.
144144 EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
145145
146 O.flush();
147
148146 // We didn't modify anything
149147 return false;
150148 }
282282
283283 // Print out jump tables referenced by the function.
284284 EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
285
286 O.flush();
287285
288286 // We didn't modify anything.
289287 return false;
181181 EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
182182
183183 O << CurrentFnName << "\tendp\n";
184
185 O.flush();
186184
187185 // We didn't modify anything.
188186 return false;