diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-03 20:01:09 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-03 20:01:09 +0000 |
commit | 83902832de6aacf9949ae227c04755497f67c974 (patch) | |
tree | 1d737c1ebfd25237ade3c0d6d7e0153cbc297340 /test/BugPoint | |
parent | 726942c8bb2d66417a52f2b007b8badde45774ad (diff) | |
download | llvm-83902832de6aacf9949ae227c04755497f67c974.tar.gz |
Revert "Revert "DI: Fold constant arguments into a single MDString""
This reverts commit r218918, effectively reapplying r218914 after fixing
an Ocaml bindings test and an Asan crash. The root cause of the latter
was a tightened-up check in `DILexicalBlock::Verify()`, so I'll file a
PR to investigate who requires the loose check (and why).
Original commit message follows.
--
This patch addresses the first stage of PR17891 by folding constant
arguments together into a single MDString. Integers are stringified and
a `\0` character is used as a separator.
Part of PR17891.
Note: I've attached my testcases upgrade scripts to the PR. If I've
just broken your out-of-tree testcases, they might help.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/BugPoint')
-rw-r--r-- | test/BugPoint/metadata.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/BugPoint/metadata.ll b/test/BugPoint/metadata.ll index cc043f084feb..1c27a4971e30 100644 --- a/test/BugPoint/metadata.ll +++ b/test/BugPoint/metadata.ll @@ -6,7 +6,7 @@ ; CHECK: call void @foo(), !dbg ![[LOC:[0-9]+]], !attach ![[CALL:[0-9]+]] ; CHECK: ![[LOC]] = metadata !{i32 104, i32 105, metadata ![[SCOPE:[0-9]+]], metadata ![[SCOPE]]} -; CHECK: ![[SCOPE]] = metadata !{i32 458769, metadata ![[FILE:[0-9]+]], i32 0, metadata !"me", i1 true, metadata !"", i32 0, metadata ![[LIST:[0-9]+]], metadata ![[LIST]], null, null, null, metadata !""} +; CHECK: ![[SCOPE]] = metadata !{metadata !"0x11\000\00me\001\00\000\00\000", metadata ![[FILE:[0-9]+]], metadata ![[LIST:[0-9]+]], metadata ![[LIST]], null, null, null} ; CHECK: ![[FILE]] = metadata !{metadata !"source.c", metadata !"/dir"} ; CHECK: ![[LIST]] = metadata !{i32 0} ; CHECK: ![[CALL]] = metadata !{metadata !"the call to foo"} @@ -31,7 +31,7 @@ declare void @foo() !3 = metadata !{metadata !"noise"} !4 = metadata !{metadata !"filler"} -!9 = metadata !{i32 458769, metadata !15, i32 0, metadata !"me", i1 true, metadata !"", i32 0, metadata !16, metadata !16, null, null, null, metadata !""} +!9 = metadata !{metadata !"0x11\000\00me\001\00\000\00\000", metadata !15, metadata !16, metadata !16, null, null, null} ; [ DW_TAG_compile_unit ] !10 = metadata !{i32 100, i32 101, metadata !9, metadata !9} !11 = metadata !{i32 102, i32 103, metadata !9, metadata !9} !12 = metadata !{i32 104, i32 105, metadata !9, metadata !9} @@ -39,4 +39,4 @@ declare void @foo() !14 = metadata !{i32 108, i32 109, metadata !9, metadata !9} !15 = metadata !{metadata !"source.c", metadata !"/dir"} !16 = metadata !{i32 0} -!17 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} +!17 = metadata !{i32 1, metadata !"Debug Info Version", i32 2} |