mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 05:06:45 +00:00
0abc36205a
This ensures that the prefix data is treated as part of the function for the purpose of debug info. This provides a better debugging experience, among other things by allowing a debug info client to correctly look up a function in debug info given a function pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193042 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
315 B
LLVM
18 lines
315 B
LLVM
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
|
|
|
|
@i = linkonce_odr global i32 1
|
|
|
|
; CHECK: f:
|
|
; CHECK-NEXT: .cfi_startproc
|
|
; CHECK-NEXT: .long 1
|
|
define void @f() prefix i32 1 {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: g:
|
|
; CHECK-NEXT: .cfi_startproc
|
|
; CHECK-NEXT: .quad i
|
|
define void @g() prefix i32* @i {
|
|
ret void
|
|
}
|