From 6a4848324bc8ed9789e3d9d99e8715b1667547d3 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 13 Jan 2015 21:10:44 +0000 Subject: AsmParser/Bitcode: Add support for MDLocation 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.) llvm-svn: 225830 --- llvm/test/Assembler/invalid-mdlocation-overflow-line.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 llvm/test/Assembler/invalid-mdlocation-overflow-line.ll (limited to 'llvm/test/Assembler/invalid-mdlocation-overflow-line.ll') diff --git a/llvm/test/Assembler/invalid-mdlocation-overflow-line.ll b/llvm/test/Assembler/invalid-mdlocation-overflow-line.ll new file mode 100644 index 00000000000..8e19f6919bf --- /dev/null +++ b/llvm/test/Assembler/invalid-mdlocation-overflow-line.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +!0 = !{} + +; CHECK-NOT: error +!1 = !MDLocation(line: 16777215, scope: !0) + +; CHECK: :[[@LINE+1]]:24: error: value for 'line' too large, limit is 16777215 +!2 = !MDLocation(line: 16777216, scope: !0) -- cgit v1.2.3