mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 22:28:22 +00:00
9960d684bf
We only want to emit CFI adjustments when actually using DWARF. This fixes PR25828. Differential Revision: http://reviews.llvm.org/D15522 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255664 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
451 B
LLVM
31 lines
451 B
LLVM
; RUN: llc < %s -mtriple=i686-pc-windows-msvc -relocation-model=pic | FileCheck %s
|
|
; MOVPC32r should not generate CFI under windows
|
|
|
|
; CHECK-LABEL: _foo:
|
|
; CHECK-NOT: .cfi_adjust_cfa_offset
|
|
define void @foo(i8) {
|
|
entry-block:
|
|
switch i8 %0, label %bb2 [
|
|
i8 1, label %bb1
|
|
i8 2, label %bb2
|
|
i8 3, label %bb3
|
|
i8 4, label %bb4
|
|
i8 5, label %bb5
|
|
]
|
|
|
|
bb1:
|
|
ret void
|
|
|
|
bb2:
|
|
ret void
|
|
|
|
bb3:
|
|
ret void
|
|
|
|
bb4:
|
|
ret void
|
|
|
|
bb5:
|
|
ret void
|
|
}
|