]> granicus.if.org Git - clang/commit
Add support for handling captured variables in lambda debug info.
authorEric Christopher <echristo@apple.com>
Wed, 29 Feb 2012 03:25:30 +0000 (03:25 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 29 Feb 2012 03:25:30 +0000 (03:25 +0000)
commit0a0714ddd3a5bd1a8147735ae7fe20b8c4b656fa
tree17df4b3f56a2ddcf83dee09c5d679ec2095062e0
parent441b3bb6eb3b43f5ad740d5cc6ad5c27823b6681
Add support for handling captured variables in lambda debug info.
This currently doesn't handle capturing the 'this' pointer for any
enclosing class.

Steal the lambda-expressions.cpp testcase and debugify it and try
to use more variables to proof it against random changes.

Part of rdar://10900684

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151702 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-lambda-expressions.cpp [new file with mode: 0644]