summaryrefslogtreecommitdiffstats
path: root/clang/test/Profile/Inputs/cxx-lambda.profdata
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-11 23:06:35 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-11 23:06:35 +0000
commit191ec63b718d85b3445bfb29b01a3f4ddee989e2 (patch)
tree25412712fe5b7b729b3c63afb93f1c394c719bb6 /clang/test/Profile/Inputs/cxx-lambda.profdata
parentb60e61c15fce38f031576adb7bd2d78b3382a916 (diff)
downloadbcm5719-llvm-191ec63b718d85b3445bfb29b01a3f4ddee989e2.tar.gz
bcm5719-llvm-191ec63b718d85b3445bfb29b01a3f4ddee989e2.zip
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
Diffstat (limited to 'clang/test/Profile/Inputs/cxx-lambda.profdata')
-rw-r--r--clang/test/Profile/Inputs/cxx-lambda.profdata20
1 files changed, 20 insertions, 0 deletions
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
+
OpenPOWER on IntegriCloud