diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-10-19 18:16:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-10-19 18:16:54 +0000 |
commit | 1f1e4bdbf7815c7c3ce90d3035b9615515e0c1aa (patch) | |
tree | aa7bcd4bca38ac62d081ac4ac27ef10d3a77482c /llvm/lib/Support/StringRef.cpp | |
parent | 6162f9774a0dd84f1c72f43d4ad11880f36cae7d (diff) | |
download | llvm-1f1e4bdbf7815c7c3ce90d3035b9615515e0c1aa.zip llvm-1f1e4bdbf7815c7c3ce90d3035b9615515e0c1aa.tar.gz llvm-1f1e4bdbf7815c7c3ce90d3035b9615515e0c1aa.tar.bz2 |
Simplify lifetime management of MacroInfo objects in Preprocessor by having the Preprocessor maintain them in a linked
list of allocated MacroInfos. This requires only 1 extra pointer per MacroInfo object, and allows us to blow them
away in one place. This fixes an elusive memory leak with MacroInfos (whose exact location I couldn't still figure
out despite substantial digging).
Fixes <rdar://problem/8361834>.
llvm-svn: 116842
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions