commit | f019943eda4896c1bbe584b4b0439bf6cbff62a9 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue Nov 16 08:15:38 2010 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue Nov 16 08:15:38 2010 +0000 |
tree | f1045e3b472a0b35d2a1524f5c78b4bfba6f6d66 | |
parent | a60ed47da13393796d8552b9fdca12abbb3eea42 [diff] |
Rework USR generation from CXCursors to use CXStringBufs for the backing of generated USRs. This optmizes for the case when a client generates a sequence of USRs in sequence, disposing of them soon after generating them. By using a string buffer, we recycle malloc'ed memory instead of constantly malloc'ing and copying strings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119338 91177308-0d34-0410-b5e6-96231b3b80d8