summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-19 21:37:13 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-19 21:37:13 +0000
commit18e73508c4e21a2ce8c2bbd22baf35e86d33279c (patch)
tree0cab8c7f0068cca0c74f4c82ff7a5a564e4639cc /llvm/test/DebugInfo/Inputs
parenta3cd35024929af630d4cc4a039da219723de261e (diff)
downloadbcm5719-llvm-18e73508c4e21a2ce8c2bbd22baf35e86d33279c.tar.gz
bcm5719-llvm-18e73508c4e21a2ce8c2bbd22baf35e86d33279c.zip
llvm-dwarfdump: Add support for dumping the .debug_loc section
This is a basic implementation - we still don't have any support (that I know of) for dumping DWARF expressions in a meaningful way, so the location information itself is just printed as a sequence of bytes as we do elsewhere. llvm-svn: 184361
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
-rw-r--r--llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.cpp13
-rw-r--r--llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.obin0 -> 2604 bytes
2 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.cpp b/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.cpp
new file mode 100644
index 00000000000..04a0b20cc2c
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.cpp
@@ -0,0 +1,13 @@
+// clang -c -g -o dwarfdump-test-loc-list-32bit.elf.o -m32 dwarfdump-test-loc-list-32bit.elf.cpp
+
+namespace pr14763 {
+struct foo {
+ foo(const foo&);
+};
+
+foo func(bool b, foo f, foo g) {
+ if (b)
+ return f;
+ return g;
+}
+}
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.o b/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.o
new file mode 100644
index 00000000000..25d10b98090
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.o
Binary files differ
OpenPOWER on IntegriCloud