Go to file
Douglas Gregor 6d00c993f5 When building the structured initializer list, pre-allocate storage in
its vectors based on the subobject type we're initializing and the
(unstructured) initializer list. This eliminates some malloc thrashing
when parsing initializers (from 117 vector reallocations down to 0
when parsing Cocoa.h). We can't always pre-allocate the right amount
of storage, since designated initializers can cause us to initialize
in non-predictable patterns.

llvm-svn: 67421
2009-03-20 23:58:33 +00:00
clang When building the structured initializer list, pre-allocate storage in 2009-03-20 23:58:33 +00:00
llvm Fix a few more indentation problems and an 80-column violation. 2009-03-20 23:16:43 +00:00