summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cxxmap/Inputs
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-13 20:22:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-13 20:22:02 +0000
commit3164fcfd273b37931e30a631f525d52ac2897fc0 (patch)
treed479607972de427c95f835c932659126e37ab436 /llvm/test/tools/llvm-cxxmap/Inputs
parent2ce2652716aa1314d23b70895c67c6043842d7bd (diff)
downloadbcm5719-llvm-3164fcfd273b37931e30a631f525d52ac2897fc0.tar.gz
bcm5719-llvm-3164fcfd273b37931e30a631f525d52ac2897fc0.zip
Add flag to llvm-profdata to allow symbols in profile data to be remapped, and
add a tool to generate symbol remapping files. Summary: The new tool llvm-cxxmap builds a symbol mapping table from a file containing a description of partial equivalences to apply to mangled names and files containing old and new symbol tables. Reviewers: davidxl Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D51470 llvm-svn: 342168
Diffstat (limited to 'llvm/test/tools/llvm-cxxmap/Inputs')
-rw-r--r--llvm/test/tools/llvm-cxxmap/Inputs/after.sym2
-rw-r--r--llvm/test/tools/llvm-cxxmap/Inputs/ambiguous.sym2
-rw-r--r--llvm/test/tools/llvm-cxxmap/Inputs/before.sym2
-rw-r--r--llvm/test/tools/llvm-cxxmap/Inputs/expected2
-rw-r--r--llvm/test/tools/llvm-cxxmap/Inputs/incomplete.sym1
-rw-r--r--llvm/test/tools/llvm-cxxmap/Inputs/remap.map8
6 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cxxmap/Inputs/after.sym b/llvm/test/tools/llvm-cxxmap/Inputs/after.sym
new file mode 100644
index 00000000000..3dc6941b6cc
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxmap/Inputs/after.sym
@@ -0,0 +1,2 @@
+_ZN1N1fEN1M1X1YE
+_ZN3foo6detail3qux1fEv
diff --git a/llvm/test/tools/llvm-cxxmap/Inputs/ambiguous.sym b/llvm/test/tools/llvm-cxxmap/Inputs/ambiguous.sym
new file mode 100644
index 00000000000..e06fd6a1f21
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxmap/Inputs/ambiguous.sym
@@ -0,0 +1,2 @@
+_ZN1N1fENS_1X1YE
+_ZN1N1fEN1M1X1YE
diff --git a/llvm/test/tools/llvm-cxxmap/Inputs/before.sym b/llvm/test/tools/llvm-cxxmap/Inputs/before.sym
new file mode 100644
index 00000000000..c6f563c80a0
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxmap/Inputs/before.sym
@@ -0,0 +1,2 @@
+_ZN3foo4quux1fEv
+_ZN1N1fENS_1X1YE
diff --git a/llvm/test/tools/llvm-cxxmap/Inputs/expected b/llvm/test/tools/llvm-cxxmap/Inputs/expected
new file mode 100644
index 00000000000..eb2cdcf8540
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxmap/Inputs/expected
@@ -0,0 +1,2 @@
+_ZN3foo4quux1fEv _ZN3foo6detail3qux1fEv
+_ZN1N1fENS_1X1YE _ZN1N1fEN1M1X1YE
diff --git a/llvm/test/tools/llvm-cxxmap/Inputs/incomplete.sym b/llvm/test/tools/llvm-cxxmap/Inputs/incomplete.sym
new file mode 100644
index 00000000000..a45225073cb
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxmap/Inputs/incomplete.sym
@@ -0,0 +1 @@
+_ZN3foo6detail3qux1fEv
diff --git a/llvm/test/tools/llvm-cxxmap/Inputs/remap.map b/llvm/test/tools/llvm-cxxmap/Inputs/remap.map
new file mode 100644
index 00000000000..df3d82d38bd
--- /dev/null
+++ b/llvm/test/tools/llvm-cxxmap/Inputs/remap.map
@@ -0,0 +1,8 @@
+# foo:: and foo::detail:: are equivalent
+name 3foo N3foo6detailE
+
+# foo::qux and foo::quux are equivalent
+type N3foo3quxE N3foo4quuxE
+
+# N::X and M::X are equivalent
+name N1N1XE N1M1XE
OpenPOWER on IntegriCloud