aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-10-19 18:16:54 +0000
committerTed Kremenek <kremenek@apple.com>2010-10-19 18:16:54 +0000
commit1f1e4bdbf7815c7c3ce90d3035b9615515e0c1aa (patch)
treeaa7bcd4bca38ac62d081ac4ac27ef10d3a77482c /llvm/lib/Support/StringRef.cpp
parent6162f9774a0dd84f1c72f43d4ad11880f36cae7d (diff)
downloadllvm-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