diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-31 18:58:39 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-31 18:58:39 +0000 |
| commit | ed013cd221aea3911dc0c8f33948c05799f751c0 (patch) | |
| tree | a164aebf28e64bfda6398d88c50d41ce4acf9ed3 /llvm/test/Transforms/GCOVProfiling | |
| parent | 0aeed7c0b864f51e64a006a1a17172bfaab8998c (diff) | |
| download | bcm5719-llvm-ed013cd221aea3911dc0c8f33948c05799f751c0.tar.gz bcm5719-llvm-ed013cd221aea3911dc0c8f33948c05799f751c0.zip | |
DI: Remove DW_TAG_arg_variable and DW_TAG_auto_variable
Remove the fake `DW_TAG_auto_variable` and `DW_TAG_arg_variable` tags,
using `DW_TAG_variable` in their place Stop exposing the `tag:` field at
all in the assembly format for `DILocalVariable`.
Most of the testcase updates were generated by the following sed script:
find test/ -name "*.ll" -o -name "*.mir" |
xargs grep -l 'DILocalVariable' |
xargs sed -i '' \
-e 's/tag: DW_TAG_arg_variable, //' \
-e 's/tag: DW_TAG_auto_variable, //'
There were only a handful of tests in `test/Assembly` that I needed to
update by hand.
(Note: a follow-up could change `DILocalVariable::DILocalVariable()` to
set the tag to `DW_TAG_formal_parameter` instead of `DW_TAG_variable`
(as appropriate), instead of having that logic magically in the backend
in `DbgVariable`. I've added a FIXME to that effect.)
llvm-svn: 243774
Diffstat (limited to 'llvm/test/Transforms/GCOVProfiling')
| -rw-r--r-- | llvm/test/Transforms/GCOVProfiling/linezero.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/GCOVProfiling/linezero.ll b/llvm/test/Transforms/GCOVProfiling/linezero.ll index 9e172b752d7..f6c78052bf4 100644 --- a/llvm/test/Transforms/GCOVProfiling/linezero.ll +++ b/llvm/test/Transforms/GCOVProfiling/linezero.ll @@ -120,17 +120,17 @@ attributes #3 = { noreturn nounwind } !24 = !{i32 2, !"Debug Info Version", i32 3} !25 = !{!"PATTERN/linezero.o", !0} !26 = !{!"clang version 3.5.0 (trunk 209871)"} -!27 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "__range", flags: DIFlagArtificial, scope: !28, type: !29) +!27 = !DILocalVariable(name: "__range", flags: DIFlagArtificial, scope: !28, type: !29) !28 = distinct !DILexicalBlock(line: 51, column: 0, file: !5, scope: !15) !29 = !DIDerivedType(tag: DW_TAG_rvalue_reference_type, baseType: !"_ZTS6vector") !30 = !DILocation(line: 0, scope: !28) !31 = !DILocation(line: 51, scope: !28) -!32 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "__begin", flags: DIFlagArtificial, scope: !28, type: !10) -!33 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "__end", flags: DIFlagArtificial, scope: !28, type: !10) +!32 = !DILocalVariable(name: "__begin", flags: DIFlagArtificial, scope: !28, type: !10) +!33 = !DILocalVariable(name: "__end", flags: DIFlagArtificial, scope: !28, type: !10) !34 = !DILocation(line: 51, scope: !35) !35 = distinct !DILexicalBlock(line: 51, column: 0, file: !5, scope: !36) !36 = distinct !DILexicalBlock(line: 51, column: 0, file: !5, scope: !28) -!37 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "spec", line: 51, scope: !28, file: !16, type: !11) +!37 = !DILocalVariable(name: "spec", line: 51, scope: !28, file: !16, type: !11) !38 = !DILocation(line: 51, scope: !39) !39 = distinct !DILexicalBlock(line: 51, column: 0, file: !5, scope: !28) !40 = !DILocation(line: 51, scope: !41) |

