Accept dwarf version 5 for CIE versions.

llvm-svn: 256527
This commit is contained in:
Eric Christopher 2015-12-28 23:02:42 +00:00
parent 5075c99f27
commit 2ae7180b24
2 changed files with 2 additions and 0 deletions

View File

@ -1248,6 +1248,7 @@ static unsigned getCIEVersion(bool IsEH, unsigned DwarfVersion) {
case 3:
return 3;
case 4:
case 5:
return 4;
}
llvm_unreachable("Unknown version");

View File

@ -1,6 +1,7 @@
; 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=DWARF3
; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4
; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4
; .debug_frame is not emitted for targeting Windows x64.
; REQUIRES: debug_frame