diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-09-23 22:44:47 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-09-23 22:44:47 +0000 |
| commit | 03c089cf97e759300ad89f776481719f623f2489 (patch) | |
| tree | aee883daf6b2972ff3f8d8bfd0214a5c44289d86 /llvm/test/DebugInfo/Inputs | |
| parent | 07e22449a3d3deb7c0e4f73a88d14bd3336fa24c (diff) | |
| download | bcm5719-llvm-03c089cf97e759300ad89f776481719f623f2489.tar.gz bcm5719-llvm-03c089cf97e759300ad89f776481719f623f2489.zip | |
llvm-dwarfdump/libDebugInfo support for type units
llvm-svn: 191234
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
| -rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-type-units.cc | 15 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-type-units.elf-x86-64 | bin | 0 -> 3928 bytes |
2 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.cc b/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.cc new file mode 100644 index 00000000000..06bc9a2102c --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.cc @@ -0,0 +1,15 @@ +struct foo {}; +struct bar {}; +void sink(void*); +int main() { + foo f; + sink(&f); + bar b; + sink(&b); +} + +// Built with GCC 4.8.1 +// $ mkdir -p /tmp/dbginfo +// $ cp dwarfdump-type-units.cc /tmp/dbginfo +// $ cd /tmp/dbginfo +// $ g++-4.8.1 -g -fdebug-types-section -c dwarfdump-type-units.cc -o dwarfdump-type-units.elf-x86-64 diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.elf-x86-64 b/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.elf-x86-64 Binary files differnew file mode 100644 index 00000000000..064b4f06764 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-type-units.elf-x86-64 |

