[llvm] r179122 - Update the version of dwarf we say we're emitting to at least 3.
Eric Christopher
echristo at gmail.com
Wed Apr 10 14:16:35 PDT 2013
Yep. I just saw Alexey's patch...
Thanks!
-eric
On Wed, Apr 10, 2013 at 2:09 PM, Manman Ren <mren at apple.com> wrote:
>
> Just a note,
> We also need to update handling of DW_FORM_ref_addr under lib/DebugInfo/ to
> use VERSION 3+.
>
> Manman
>
> On Apr 9, 2013, at 1:22 PM, Eric Christopher <echristo at gmail.com> wrote:
>
> Author: echristo
> Date: Tue Apr 9 15:22:47 2013
> New Revision: 179122
>
> URL: http://llvm.org/viewvc/llvm-project?rev=179122&view=rev
> Log:
> Update the version of dwarf we say we're emitting to at least 3.
>
> Deals with a dwarf2 -> dwarf3 DW_FORM_ref_addr change.
>
> Added:
> llvm/trunk/test/DebugInfo/dwarf-version.ll
> Modified:
> llvm/trunk/include/llvm/Support/Dwarf.h
>
> Modified: llvm/trunk/include/llvm/Support/Dwarf.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Dwarf.h?rev=179122&r1=179121&r2=179122&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Support/Dwarf.h (original)
> +++ llvm/trunk/include/llvm/Support/Dwarf.h Tue Apr 9 15:22:47 2013
> @@ -67,7 +67,7 @@ const uint64_t DW64_CIE_ID = UINT64_MAX;
>
>
> enum dwarf_constants {
> - DWARF_VERSION = 2,
> + DWARF_VERSION = 3,
>
> // Tags
> DW_TAG_array_type = 0x01,
>
> Added: llvm/trunk/test/DebugInfo/dwarf-version.ll
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/dwarf-version.ll?rev=179122&view=auto
> ==============================================================================
> --- llvm/trunk/test/DebugInfo/dwarf-version.ll (added)
> +++ llvm/trunk/test/DebugInfo/dwarf-version.ll Tue Apr 9 15:22:47 2013
> @@ -0,0 +1,17 @@
> +; RUN: llc -filetype=obj -O0 < %s > %t
> +; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
> +
> +; Test the version of debug info we say we're emitting.
> +; CHECK: version = 0x0003
> +
> + at a = common global i32 0, align 4
> +
> +!llvm.dbg.cu = !{!0}
> +
> +!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version
> 3.3 (trunk 179108) (llvm/trunk 179114)", i1 false, metadata !"", i32 0,
> metadata !2, metadata !2, metadata !2, metadata !3, metadata !""} ; [
> DW_TAG_compile_unit ] [/usr/local/google/home/echristo/tmp/foo.c]
> [DW_LANG_C99]
> +!1 = metadata !{metadata !"foo.c", metadata
> !"/usr/local/google/home/echristo/tmp"}
> +!2 = metadata !{i32 0}
> +!3 = metadata !{metadata !4}
> +!4 = metadata !{i32 786484, i32 0, null, metadata !"a", metadata !"a",
> metadata !"", metadata !5, i32 1, metadata !6, i32 0, i32 1, i32* @a, null}
> ; [ DW_TAG_variable ] [a] [line 1] [def]
> +!5 = metadata !{i32 786473, metadata !1} ; [ DW_TAG_file_type ]
> [/usr/local/google/home/echristo/tmp/foo.c]
> +!6 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, i64
> 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32,
> align 32, offset 0, enc DW_ATE_signed]
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
More information about the llvm-commits
mailing list