diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-01-19 17:57:29 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-01-19 17:57:29 +0000 |
commit | 5883af3faaa5355cc886c0b66c95ab7669e024dc (patch) | |
tree | ca7fa021facd981f77260e5af019f357165ac39b /llvm/test/DebugInfo/X86/vla.ll | |
parent | 7c6f944cdf82c2faa5e2ae0a88184b5683474442 (diff) | |
download | bcm5719-llvm-5883af3faaa5355cc886c0b66c95ab7669e024dc.tar.gz bcm5719-llvm-5883af3faaa5355cc886c0b66c95ab7669e024dc.zip |
Remove support for DIVariable's FlagIndirectVariable and expect
frontends to use a DIExpression with a DW_OP_deref instead.
This is not only a much more natural place for this informationl; there
is also a technical reason: The FlagIndirectVariable is used to mark a
variable that is turned into a reference by virtue of the calling
convention; this happens for example to aggregate return values.
The inliner, for example, may actually need to undo this indirection to
correctly represent the value in its new context. This is impossible to
implement because the DIVariable can't be safely modified. We can however
safely construct a new DIExpression on the fly.
llvm-svn: 226476
Diffstat (limited to 'llvm/test/DebugInfo/X86/vla.ll')
-rw-r--r-- | llvm/test/DebugInfo/X86/vla.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/X86/vla.ll b/llvm/test/DebugInfo/X86/vla.ll index b2f2f3d922d..3d2ca5e0214 100644 --- a/llvm/test/DebugInfo/X86/vla.ll +++ b/llvm/test/DebugInfo/X86/vla.ll @@ -33,7 +33,7 @@ entry: %2 = call i8* @llvm.stacksave(), !dbg !17 store i8* %2, i8** %saved_stack, !dbg !17 %vla = alloca i32, i64 %1, align 16, !dbg !17 - call void @llvm.dbg.declare(metadata i32* %vla, metadata !18, metadata !{!"0x102"}), !dbg !17 + call void @llvm.dbg.declare(metadata i32* %vla, metadata !18, metadata !{!"0x102\006"}), !dbg !17 %arrayidx = getelementptr inbounds i32* %vla, i64 0, !dbg !22 store i32 42, i32* %arrayidx, align 4, !dbg !22 %3 = load i32* %n.addr, align 4, !dbg !23 @@ -93,7 +93,7 @@ entry: !15 = !{!"0x101\00n\0016777217\000", !4, !5, !8} ; [ DW_TAG_arg_variable ] [n] [line 1] !16 = !MDLocation(line: 1, scope: !4) !17 = !MDLocation(line: 2, scope: !4) -!18 = !{!"0x100\00a\002\008192", !4, !5, !19} ; [ DW_TAG_auto_variable ] [a] [line 2] +!18 = !{!"0x100\00a\002\000", !4, !5, !19} ; [ DW_TAG_auto_variable ] [a] [line 2] !19 = !{!"0x1\00\000\000\0032\000\000", null, null, !8, !20, i32 0, null, null, null} ; [ DW_TAG_array_type ] [line 0, size 0, align 32, offset 0] [from int] !20 = !{!21} !21 = !{!"0x21\000\00-1"} ; [ DW_TAG_subrange_type ] [unbounded] |