aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-01 19:23:04 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-01 19:23:04 +0000
commitb278aafbfb07f9fe1547beed71a34afb05d482cf (patch)
treed407bbc25774cab1c297c0d3bdb59bb7cc8642cf /clang/lib/CodeGen/CodeGenFunction.cpp
parent433c6180ab02f957dde8416a8ef2a2d1fa414579 (diff)
downloadllvm-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