diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-06-19 21:37:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-06-19 21:37:13 +0000 |
commit | 18e73508c4e21a2ce8c2bbd22baf35e86d33279c (patch) | |
tree | 0cab8c7f0068cca0c74f4c82ff7a5a564e4639cc /llvm/test/DebugInfo/Inputs | |
parent | a3cd35024929af630d4cc4a039da219723de261e (diff) | |
download | bcm5719-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.cpp | 13 | ||||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.o | bin | 0 -> 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 Binary files differnew file mode 100644 index 00000000000..25d10b98090 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-test-loc-list-32bit.elf.o |