diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-01 19:23:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-01 19:23:04 +0000 |
commit | b278aafbfb07f9fe1547beed71a34afb05d482cf (patch) | |
tree | d407bbc25774cab1c297c0d3bdb59bb7cc8642cf /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 433c6180ab02f957dde8416a8ef2a2d1fa414579 (diff) | |
download | llvm-b278aafbfb07f9fe1547beed71a34afb05d482cf.zip llvm-b278aafbfb07f9fe1547beed71a34afb05d482cf.tar.gz llvm-b278aafbfb07f9fe1547beed71a34afb05d482cf.tar.bz2 |
Allocate CodeCompletionString and all of its components in a
BumpPtrAllocator, rather than manually new/delete'ing them. This
optimization also allows us to avoid allocating memory for and copying
constant strings (e.g., "return", "class").
This also required embedding the priority and availability of results
within the code completion string, to avoid extra memory allocation
within libclang.
llvm-svn: 124673
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions