diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-05-17 20:12:08 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-05-17 20:12:08 +0000 |
| commit | f0a41089ff2a580ad6665f62e8198b5efaa1ede2 (patch) | |
| tree | b1c1f1a62d481f8840bb63c29839fa0d703a3f1f /llvm/test/DebugInfo/X86 | |
| parent | 18b61707e86ea69e5014adcbfbfaf7a12903722d (diff) | |
| download | bcm5719-llvm-f0a41089ff2a580ad6665f62e8198b5efaa1ede2.tar.gz bcm5719-llvm-f0a41089ff2a580ad6665f62e8198b5efaa1ede2.zip | |
Debug Info: Don't emit bitfields in the DWARF4 format when tuning for GDB.
As discovered in PR27758, GDB does not fully support the DWARF 4 format.
This patch ensures we always emit bitfields in the DWARF 2 when tuning for GDB.
llvm-svn: 269827
Diffstat (limited to 'llvm/test/DebugInfo/X86')
| -rw-r--r-- | llvm/test/DebugInfo/X86/bitfields-dwarf4.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll b/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll index cefe61663d4..5275fc64554 100644 --- a/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll +++ b/llvm/test/DebugInfo/X86/bitfields-dwarf4.ll @@ -1,5 +1,8 @@ ; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o - %s \ ; RUN: | llvm-dwarfdump -debug-dump=info - | FileCheck %s +; RUN: llc -mtriple x86_64-gnu-linux -O0 -filetype=obj -o - %s \ +; RUN: | llvm-dwarfdump -debug-dump=info - | FileCheck %s --check-prefix=LINUX +; LINUX-NOT: DW_AT_data_bit_offset ; ; Generated from: ; #include <stdint.h> |

