diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-12-09 20:58:24 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-12-09 20:58:24 +0000 |
commit | 41245b4e2a2c71d764534b41bc38fea7c5cf6774 (patch) | |
tree | ee2972f5124068538e481b1af7fe799eb9b89a24 /test/Transforms/GCOVProfiling | |
parent | 863c7b48a6672f7074b2e69683fe4259c8c31bd7 (diff) | |
download | external_llvm-41245b4e2a2c71d764534b41bc38fea7c5cf6774.zip external_llvm-41245b4e2a2c71d764534b41bc38fea7c5cf6774.tar.gz external_llvm-41245b4e2a2c71d764534b41bc38fea7c5cf6774.tar.bz2 |
Merging r195504:
------------------------------------------------------------------------
r195504 | mren | 2013-11-22 13:49:45 -0800 (Fri, 22 Nov 2013) | 6 lines
Debug Info: update testing cases to specify the debug info version number.
We are going to drop debug info without a version number or with a different
version number, to make sure we don't crash when we see bitcode files with
different debug info metadata format.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GCOVProfiling')
-rw-r--r-- | test/Transforms/GCOVProfiling/linkagename.ll | 2 | ||||
-rw-r--r-- | test/Transforms/GCOVProfiling/version.ll | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/Transforms/GCOVProfiling/linkagename.ll b/test/Transforms/GCOVProfiling/linkagename.ll index 3059c82..ed3a5bd 100644 --- a/test/Transforms/GCOVProfiling/linkagename.ll +++ b/test/Transforms/GCOVProfiling/linkagename.ll @@ -12,6 +12,7 @@ entry: } !llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!10} !llvm.gcov = !{!9} !0 = metadata !{i32 786449, metadata !2, i32 4, metadata !"clang version 3.3 (trunk 177323)", i1 false, metadata !"", i32 0, metadata !3, metadata !3, metadata !4, metadata !3, metadata !3, metadata !""} ; [ DW_TAG_compile_unit ] [/home/nlewycky/hello.cc] [DW_LANG_C_plus_plus] @@ -25,3 +26,4 @@ entry: !8 = metadata !{i32 1, i32 0, metadata !5, null} +!10 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} diff --git a/test/Transforms/GCOVProfiling/version.ll b/test/Transforms/GCOVProfiling/version.ll index 15bcb05..2f1bd70 100644 --- a/test/Transforms/GCOVProfiling/version.ll +++ b/test/Transforms/GCOVProfiling/version.ll @@ -16,6 +16,7 @@ define void @test() { !llvm.gcov = !{!9} !llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!12} !0 = metadata !{i32 786449, metadata !11, i32 4, metadata !"clang version 3.3 (trunk 176994)", i1 false, metadata !"", i32 0, metadata !3, metadata !3, metadata !4, metadata !3, null, metadata !""} ; [ DW_TAG_compile_unit ] [./version] [DW_LANG_C_plus_plus] !2 = metadata !{i32 786473, metadata !11} ; [ DW_TAG_file_type ] @@ -28,3 +29,4 @@ define void @test() { ;; !9 is added through the echo line at the top. !10 = metadata !{metadata !"<stdin>", metadata !"."} !11 = metadata !{metadata !"version", metadata !"/usr/local/google/home/nlewycky"} +!12 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} |