mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
39bb84a097
This mostly cosmetic patch moves the DebugEmissionKind enum from DIBuilder into DICompileUnit. DIBuilder is not the right place for this enum to live in — a metadata consumer should not have to include DIBuilder.h. I also added a Verifier check that checks that the emission kind of a DICompileUnit is actually legal. http://reviews.llvm.org/D18612 <rdar://problem/25427165> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265077 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
377 B
LLVM
9 lines
377 B
LLVM
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
; CHECK: <stdin>:[[@LINE+1]]:71: error: value for 'emissionKind' too large
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_Cobol85, emissionKind: 99,
|
|
file: !DIFile(filename: "a", directory: "b"))
|
|
!llvm.module.flags = !{!1}
|
|
!1 = !{i32 2, !"Debug Info Version", i32 3}
|