summaryrefslogtreecommitdiff
path: root/test/DebugInfo/inlined-arguments.ll
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-06-13 21:52:33 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-06-13 21:52:33 +0000
commitc4268a67950514b1e5f2f602882dc7c22609c448 (patch)
treeb739c5fe80e958a53ea59ef608f0bc8acdd16ef0 /test/DebugInfo/inlined-arguments.ll
parent0c2029af038c012b618e7187d0eb92112f068543 (diff)
downloadllvm-c4268a67950514b1e5f2f602882dc7c22609c448.tar.gz
llvm-c4268a67950514b1e5f2f602882dc7c22609c448.tar.bz2
llvm-c4268a67950514b1e5f2f602882dc7c22609c448.tar.xz
DebugInfo: Refactor some tests to allow DW_AT_name to not be the first attribute in a local variable.
In an effort to fix concrete variables referencing abstract origins where the concrete variable preceeds the first inlined usage, the addition of attributes such as name, file, etc will be delayed until the end of the module (to wait to see if any inlined instances have occurred, thus necessitating an abstract definition that the concrete definition should also reference). These test cases don't actually need to care about this ordering of attributes, so update them to be more resilient to such changes coming in the near future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/inlined-arguments.ll')
-rw-r--r--test/DebugInfo/inlined-arguments.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/DebugInfo/inlined-arguments.ll b/test/DebugInfo/inlined-arguments.ll
index ebc81a683f..6979862a53 100644
--- a/test/DebugInfo/inlined-arguments.ll
+++ b/test/DebugInfo/inlined-arguments.ll
@@ -16,9 +16,11 @@
; CHECK: DW_AT_name{{.*}}"f1"
; CHECK: DW_TAG_formal_parameter
-; CHECK-NEXT: DW_AT_name{{.*}}"x"
+; CHECK-NOT: DW_TAG
+; CHECK: DW_AT_name{{.*}}"x"
; CHECK: DW_TAG_formal_parameter
-; CHECK-NEXT: DW_AT_name{{.*}}"y"
+; CHECK-NOT: DW_TAG
+; CHECK: DW_AT_name{{.*}}"y"
; Function Attrs: uwtable
define void @_Z2f2v() #0 {