[llvm] r326183 - [dsymutil][test] Add PowerPC test
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 02:28:43 PST 2018
Author: jdevlieghere
Date: Tue Feb 27 02:28:43 2018
New Revision: 326183
URL: http://llvm.org/viewvc/llvm-project?rev=326183&view=rev
Log:
[dsymutil][test] Add PowerPC test
Add test that verifies that we don't follow DWARF values with a
reference form class, such as DW_AT_sibling.
Since clang doesn't generate the latter attribute, we added a PowerPC
test generated on an old PowerBook G4. (Thanks Adrian!)
Added:
llvm/trunk/test/tools/dsymutil/Inputs/sibling.o (with props)
llvm/trunk/test/tools/dsymutil/PowerPC/
llvm/trunk/test/tools/dsymutil/PowerPC/lit.local.cfg
llvm/trunk/test/tools/dsymutil/PowerPC/sibling.test
Added: llvm/trunk/test/tools/dsymutil/Inputs/sibling.o
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/dsymutil/Inputs/sibling.o?rev=326183&view=auto
==============================================================================
Binary file - no diff available.
Propchange: llvm/trunk/test/tools/dsymutil/Inputs/sibling.o
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: llvm/trunk/test/tools/dsymutil/PowerPC/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/dsymutil/PowerPC/lit.local.cfg?rev=326183&view=auto
==============================================================================
--- llvm/trunk/test/tools/dsymutil/PowerPC/lit.local.cfg (added)
+++ llvm/trunk/test/tools/dsymutil/PowerPC/lit.local.cfg Tue Feb 27 02:28:43 2018
@@ -0,0 +1,4 @@
+if not 'PowerPC' in config.root.targets:
+ config.unsupported = True
+
+config.suffixes = ['.test', '.cpp', '.c']
Added: llvm/trunk/test/tools/dsymutil/PowerPC/sibling.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/dsymutil/PowerPC/sibling.test?rev=326183&view=auto
==============================================================================
--- llvm/trunk/test/tools/dsymutil/PowerPC/sibling.test (added)
+++ llvm/trunk/test/tools/dsymutil/PowerPC/sibling.test Tue Feb 27 02:28:43 2018
@@ -0,0 +1,20 @@
+# Verify that we don't follow DW_AT_sibling references.
+#
+# Source:
+# struct A { int a; } a;
+# struct B { int b; } b;
+
+# RUN: llvm-dsymutil -arch ppc -f -oso-prepend-path=%p/../Inputs/ -y %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s
+
+# CHECK: DW_TAG_variable
+# CHECK-NEXT: DW_AT_name ("a")
+# CHECK-NOT: DW_AT_name ("b")
+
+---
+triple: 'ppc-apple-darwin'
+objects:
+ - filename: sibling.o
+ timestamp: 1518197670
+ symbols:
+ - { sym: _a, objAddr: 0x00000000000000cb, binAddr: 0x0000000100000FA0, size: 0x00000010 }
+...
More information about the llvm-commits
mailing list