mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
0181303087
and update everything accordingly. This can be used to conditionalize the amount of output in the backend based on the amount of debug requested/metadata emission scheme by a front end (e.g. clang). Paired with a commit to clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202332 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
898 B
LLVM
20 lines
898 B
LLVM
; RUN: llvm-as < %s | opt -verify -S -asm-verbose | FileCheck %s
|
|
|
|
; CHECK: lang 0x8001
|
|
|
|
define void @Foo(i32 %a, i32 %b) {
|
|
entry:
|
|
call void @llvm.dbg.declare(metadata !{i32* null}, metadata !1)
|
|
ret void
|
|
}
|
|
!llvm.dbg.cu = !{!2}
|
|
!llvm.module.flags = !{!5}
|
|
!2 = metadata !{i32 786449, metadata !4, i32 32769, metadata !"clang version 3.3 ", i1 false, metadata !"", i32 0, metadata !3, metadata !3, metadata !3, metadata !3, metadata !3, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/usr/local/google/home/blaikie/dev/scratch/scratch.cpp] [lang 0x8001]
|
|
!3 = metadata !{}
|
|
!0 = metadata !{i32 662302, i32 26, metadata !1, null}
|
|
!1 = metadata !{i32 4, metadata !"foo"}
|
|
!4 = metadata !{metadata !"scratch.cpp", metadata !"/usr/local/google/home/blaikie/dev/scratch"}
|
|
|
|
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
|
|
!5 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|