mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-31 12:30:06 +00:00
This adds assembly and bitcode support for `MDLocation`. The assembly side is rather big, since this is the first `MDNode` subclass (that isn't `MDTuple`). Part of PR21433. (If you're wondering where the mountains of testcase updates are, we don't need them until I update `DILocation` and `DebugLoc` to actually use this class.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225830 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
265 B
LLVM
10 lines
265 B
LLVM
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
|
|
|
|
!0 = !{}
|
|
|
|
; CHECK-NOT: error
|
|
!1 = !MDLocation(line: 16777215, scope: !0)
|
|
|
|
; CHECK: <stdin>:[[@LINE+1]]:24: error: value for 'line' too large, limit is 16777215
|
|
!2 = !MDLocation(line: 16777216, scope: !0)
|