From 282450d94c9e059fc08d80d8e93eb994ce3c77fc Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 3 Mar 2014 18:53:17 +0000 Subject: Add DWARF discriminator support to DILexicalBlocks. This adds support for emitting discriminators from DILexicalBlocks. llvm-svn: 202736 --- llvm/docs/SourceLevelDebugging.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'llvm/docs/SourceLevelDebugging.rst') diff --git a/llvm/docs/SourceLevelDebugging.rst b/llvm/docs/SourceLevelDebugging.rst index a6349fba86a..5d7a528c2eb 100644 --- a/llvm/docs/SourceLevelDebugging.rst +++ b/llvm/docs/SourceLevelDebugging.rst @@ -319,6 +319,7 @@ Block descriptors metadata,;; Reference to context descriptor i32, ;; Line number i32, ;; Column number + i32, ;; DWARF path discriminator value i32 ;; Unique ID to identify blocks from a template function } @@ -724,7 +725,8 @@ Compiled to LLVM, this function would be represented like this: !15 = metadata !{i32 786688, metadata !16, metadata !"Z", metadata !5, i32 5, metadata !11, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [Z] \ [line 5] - !16 = metadata !{i32 786443, metadata !1, metadata !4, i32 4, i32 0, i32 0} \ + !16 = metadata !{i32 786443, metadata !1, metadata !4, i32 4, i32 0, i32 0, + i32 0} \ ; [ DW_TAG_lexical_block ] [/private/tmp/t.c] !17 = metadata !{i32 5, i32 0, metadata !16, null} !18 = metadata !{i32 6, i32 0, metadata !16, null} @@ -776,7 +778,8 @@ scope information for the variable ``Z``. .. code-block:: llvm - !16 = metadata !{i32 786443, metadata !1, metadata !4, i32 4, i32 0, i32 0} + !16 = metadata !{i32 786443, metadata !1, metadata !4, i32 4, i32 0, i32 0, + i32 0} ; [ DW_TAG_lexical_block ] [/private/tmp/t.c] !17 = metadata !{i32 5, i32 0, metadata !16, null} -- cgit v1.2.3