From 191ec63b718d85b3445bfb29b01a3f4ddee989e2 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Fri, 11 Apr 2014 23:06:35 +0000 Subject: CodeGen: Fix handling of C++11 lambdas in profiling Until now we were generating duplicate counters for lambdas: one set in the function where the lambda was declared and another for the lambda itself. Instead, we should skip over the bodies of lambdas in their containing contexts. llvm-svn: 206081 --- clang/test/Profile/Inputs/cxx-lambda.profdata | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 clang/test/Profile/Inputs/cxx-lambda.profdata (limited to 'clang/test/Profile/Inputs/cxx-lambda.profdata') diff --git a/clang/test/Profile/Inputs/cxx-lambda.profdata b/clang/test/Profile/Inputs/cxx-lambda.profdata new file mode 100644 index 00000000000..dd6c6ec4f6e --- /dev/null +++ b/clang/test/Profile/Inputs/cxx-lambda.profdata @@ -0,0 +1,20 @@ +cxx-lambda.cpp:_ZZ7lambdasvENK3$_0clEi +3 +3 +10 +9 +9 + +main +1 +1 +1 + +_Z7lambdasv +4 +4 +1 +1 +10 +1 + -- cgit v1.2.3