Record all translation units with more than one function in them (e.g., blocks).
authorSean Callanan <scallanan@apple.com>
Sat, 26 Mar 2016 00:30:40 +0000 (00:30 +0000)
committerSean Callanan <scallanan@apple.com>
Sat, 26 Mar 2016 00:30:40 +0000 (00:30 +0000)
commit47cca78efa07fcf94507e1b84b098f984493cadc
tree52b9119907cc16e6a7c58eeb912e85cc9ba59bbd
parent7111bb5206c64a38d4e0a03c70bb3878cda50ddc
Record all translation units with more than one function in them (e.g., blocks).

Blocks and lambdas have their implementation functions stored in the IR for an
expression.  If we put the block/lambda into a result variable it needs to stay
around.  As a heuristic, remember any execution unit that has more than one
function in it.

<rdar://problem/22864976>

llvm-svn: 264483
lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp