forked from OSchip/llvm-project
Accept dwarf version 5 for CIE versions.
llvm-svn: 256527
This commit is contained in:
parent
5075c99f27
commit
2ae7180b24
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue