]> granicus.if.org Git - llvm/commit
Change Comments SmallVector to std::vector in DebugLocStream [NFC]
authorDavid Stenberg <david.stenberg@ericsson.com>
Tue, 15 Oct 2019 09:21:09 +0000 (09:21 +0000)
committerDavid Stenberg <david.stenberg@ericsson.com>
Tue, 15 Oct 2019 09:21:09 +0000 (09:21 +0000)
commitb01616e16425f63929fcf59baf32c6dcb697550e
tree74fd0413bb015bbeb232ac4c53228220eb97c6e4
parent3d3a39d6bbdde81f7e8baa712f278c0173ac099e
Change Comments SmallVector to std::vector in DebugLocStream [NFC]

This changes the 32-element SmallVector to a std::vector. When building
a RelWithDebInfo clang-8 binary, the average size of the vector was
~10000, so it does not seem very beneficial or practical to use a small
vector for that.

The DWARFBytes SmallVector grows in the same way as Comments, so perhaps
that also should be changed to a purely dynamically allocated structure,
but that requires some more code changes, so I let that remain as a
SmallVector for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374871 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/ByteStreamer.h
lib/CodeGen/AsmPrinter/DebugLocStream.h