summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-07-13 00:49:03 +0000
committerDavide Italiano <davide@freebsd.org>2017-07-13 00:49:03 +0000
commit4d6ef11e48e18a4125f1d63dd9115564aafd4442 (patch)
tree2239adfddc7d2157f283bc33ded707404eb8238e /llvm/test
parenta6c57dd989e7da81a697a40e220d0be1c73c1134 (diff)
downloadbcm5719-llvm-4d6ef11e48e18a4125f1d63dd9115564aafd4442.tar.gz
bcm5719-llvm-4d6ef11e48e18a4125f1d63dd9115564aafd4442.zip
[sanstats] Print the correct line information.
The instrumentation tracks the return address and not that of the call so we remove one to compensate. Thanks for Peter Collingbourne for confirming the analysis of the problem. llvm-svn: 307871
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/sanstats/Inputs/debuginfo.statsbin0 -> 352 bytes
-rw-r--r--llvm/test/tools/sanstats/debuginfo.test4
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/sanstats/Inputs/debuginfo.stats b/llvm/test/tools/sanstats/Inputs/debuginfo.stats
new file mode 100644
index 00000000000..45de79be3a7
--- /dev/null
+++ b/llvm/test/tools/sanstats/Inputs/debuginfo.stats
Binary files differ
diff --git a/llvm/test/tools/sanstats/debuginfo.test b/llvm/test/tools/sanstats/debuginfo.test
new file mode 100644
index 00000000000..6585ff75310
--- /dev/null
+++ b/llvm/test/tools/sanstats/debuginfo.test
@@ -0,0 +1,4 @@
+# RUN: sanstats %p/Inputs/debuginfo.stats | FileCheck %s
+
+# CHECK: stats.cpp:23 vcall.cfi cfi-vcall 37
+# CHECK: stats.cpp:28 nvcall.cfi cfi-nvcall 51
OpenPOWER on IntegriCloud