Replace some typically large vectors with SmallVector.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 22 Feb 2013 18:29:39 +0000 (18:29 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 22 Feb 2013 18:29:39 +0000 (18:29 +0000)
commit2999b77f1d1aec8b715b75d6724df6e905b73969
tree9c7756e498f014f13a0b05bc0a5dfbc57bfd4eeb
parent23e8b6b8c918238d870248baa21f37c81ff3817a
Replace some typically large vectors with SmallVector.

This may seem counter-intuitive but the POD-like optimization helps when the
vectors grow into multimegabyte buffers. SmallVector calls realloc which knows
how to twiddle virtual memory bits and avoids large copies.

llvm-svn: 175906
clang/include/clang/AST/ASTContext.h
clang/include/clang/Basic/SourceManager.h
clang/lib/Basic/SourceManager.cpp