diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-02 21:56:57 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-02 21:56:57 +0000 |
commit | 571f97bd9055738e88c982564c06ba6d48ac7f9f (patch) | |
tree | 8853f1ba2183cc4f7d5c8fb454188b705e445e1a /llvm/test/Transforms/Inline | |
parent | 02b418a875b630be83fad340e3a213701904617c (diff) | |
download | bcm5719-llvm-571f97bd9055738e88c982564c06ba6d48ac7f9f.tar.gz bcm5719-llvm-571f97bd9055738e88c982564c06ba6d48ac7f9f.zip |
DI: Fold constant arguments into a single MDString
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.
llvm-svn: 218914
Diffstat (limited to 'llvm/test/Transforms/Inline')
-rw-r--r-- | llvm/test/Transforms/Inline/debug-invoke.ll | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/Inline/ignore-debug-info.ll | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/Inline/debug-invoke.ll b/llvm/test/Transforms/Inline/debug-invoke.ll index 41d60742fd2..0de2d22efb7 100644 --- a/llvm/test/Transforms/Inline/debug-invoke.ll +++ b/llvm/test/Transforms/Inline/debug-invoke.ll @@ -31,7 +31,7 @@ lpad: } !llvm.module.flags = !{!1} -!1 = metadata !{i32 2, metadata !"Debug Info Version", i32 1} +!1 = metadata !{i32 2, metadata !"Debug Info Version", i32 2} !2 = metadata !{} !3 = metadata !{i32 1, i32 0, metadata !2, null} !4 = metadata !{i32 2, i32 0, metadata !2, null} diff --git a/llvm/test/Transforms/Inline/ignore-debug-info.ll b/llvm/test/Transforms/Inline/ignore-debug-info.ll index 6e11eff271e..428b5d5a02d 100644 --- a/llvm/test/Transforms/Inline/ignore-debug-info.ll +++ b/llvm/test/Transforms/Inline/ignore-debug-info.ll @@ -47,9 +47,9 @@ attributes #0 = { nounwind readnone } !llvm.module.flags = !{!3, !4} !llvm.ident = !{!5} -!0 = metadata !{i32 786449, metadata !1, i32 4, metadata !"", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !{}, metadata !2, metadata !2, metadata !""} +!0 = metadata !{metadata !"0x11\004\00\000\00\000\00\000", metadata !1, metadata !2, metadata !2, metadata !{}, metadata !2, metadata !2} ; [ DW_TAG_compile_unit ] !1 = metadata !{metadata !"", metadata !""} !2 = metadata !{i32 0} !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4} -!4 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} +!4 = metadata !{i32 1, metadata !"Debug Info Version", i32 2} !5 = metadata !{metadata !""} |