diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-28 13:55:31 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-28 13:55:31 +0000 |
| commit | effdc7e9811da8fa2df9c23c7bfa9e9b722bb3ae (patch) | |
| tree | 2eaf2e3e6ce6210396d8431dd48cbe9b6c2323f0 /llvm/test | |
| parent | 48e93f71811e374ecbd0ef431d4c9e4028b8a80c (diff) | |
| download | bcm5719-llvm-effdc7e9811da8fa2df9c23c7bfa9e9b722bb3ae.tar.gz bcm5719-llvm-effdc7e9811da8fa2df9c23c7bfa9e9b722bb3ae.zip | |
Use CIE version 4 for dwarf4.
According to http://www.dwarfstd.org/doc/DWARF4.pdf appendix F the CIE
version for dwarf 4 is 4.
llvm-svn: 235988
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/ELF/cfi-sections.s | 4 | ||||
| -rw-r--r-- | llvm/test/MC/ELF/cfi-version.ll | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/llvm/test/MC/ELF/cfi-sections.s b/llvm/test/MC/ELF/cfi-sections.s index b0ba543e5bd..04240a8936c 100644 --- a/llvm/test/MC/ELF/cfi-sections.s +++ b/llvm/test/MC/ELF/cfi-sections.s @@ -26,7 +26,7 @@ f2: // ELF_64-NEXT: AddressAlignment: 8 // ELF_64-NEXT: EntrySize: 0 // ELF_64-NEXT: SectionData ( -// ELF_64-NEXT: 0000: 14000000 FFFFFFFF 03000178 100C0708 +// ELF_64-NEXT: 0000: 14000000 FFFFFFFF 04000178 100C0708 // ELF_64-NEXT: 0010: 90010000 00000000 14000000 00000000 // ELF_64-NEXT: 0020: 00000000 00000000 01000000 00000000 // ELF_64-NEXT: 0030: 14000000 00000000 00000000 00000000 @@ -47,7 +47,7 @@ f2: // ELF_32-NEXT: AddressAlignment: 4 // ELF_32-NEXT: EntrySize: 0 // ELF_32-NEXT: SectionData ( -// ELF_32-NEXT: 0000: 10000000 FFFFFFFF 0300017C 080C0404 +// ELF_32-NEXT: 0000: 10000000 FFFFFFFF 0400017C 080C0404 // ELF_32-NEXT: 0010: 88010000 0C000000 00000000 00000000 // ELF_32-NEXT: 0020: 01000000 0C000000 00000000 01000000 // ELF_32-NEXT: 0030: 01000000 diff --git a/llvm/test/MC/ELF/cfi-version.ll b/llvm/test/MC/ELF/cfi-version.ll index 2f34b2a1f08..71ed007a8b5 100644 --- a/llvm/test/MC/ELF/cfi-version.ll +++ b/llvm/test/MC/ELF/cfi-version.ll @@ -1,6 +1,6 @@ ; RUN: %llc_dwarf %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF2 -; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF34 -; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF34 +; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF3 +; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4 ; .debug_frame is not emitted for targeting Windows x64. ; REQUIRES: debug_frame @@ -40,6 +40,10 @@ attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "n ; DWARF2: Version: 1 ; DWARF2-NEXT: Augmentation: -; DWARF34: .debug_frame contents: -; DWARF34: Version: 3 -; DWARF34-NEXT: Augmentation: +; DWARF3: .debug_frame contents: +; DWARF3: Version: 3 +; DWARF3-NEXT: Augmentation: + +; DWARF4: .debug_frame contents: +; DWARF4: Version: 4 +; DWARF4-NEXT: Augmentation: |

