mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Update documentation for old api changes.
Fixes PR12050 llvm-svn: 153424
This commit is contained in:
parent
f5dbddfa0e
commit
c3ea38275b
@ -425,7 +425,8 @@ height="369">
|
||||
|
||||
<p>These descriptors provide debug information about globals variables. The
|
||||
provide details such as name, type and where the variable is defined. All
|
||||
global variables are collected by named metadata <tt>!llvm.dbg.gv</tt>.</p>
|
||||
global variables are collected inside the named metadata
|
||||
<tt>!llvm.dbg.cu</tt>.</p>
|
||||
|
||||
</div>
|
||||
|
||||
@ -688,7 +689,8 @@ DW_TAG_inheritance = 28
|
||||
<p>The members of enumeration types (tag = <tt>DW_TAG_enumeration_type</tt>) are
|
||||
<a href="#format_enumeration">enumerator descriptors</a>, each representing
|
||||
the definition of enumeration value for the set. All enumeration type
|
||||
descriptors are collected by named metadata <tt>!llvm.dbg.enum</tt>.</p>
|
||||
descriptors are collected inside the named metadata
|
||||
<tt>!llvm.dbg.cu</tt>.</p>
|
||||
|
||||
<p>The members of structure (tag = <tt>DW_TAG_structure_type</tt>) or union (tag
|
||||
= <tt>DW_TAG_union_type</tt>) types are any one of
|
||||
@ -1162,43 +1164,78 @@ int MyGlobal = 100;
|
||||
;;
|
||||
;; List of debug info of globals
|
||||
;;
|
||||
!llvm.dbg.gv = !{!0}
|
||||
!llvm.dbg.cu = !{!0}
|
||||
|
||||
;;
|
||||
;; Define the global variable descriptor. Note the reference to the global
|
||||
;; variable anchor and the global variable itself.
|
||||
;;
|
||||
;; Define the compile unit.
|
||||
!0 = metadata !{
|
||||
i32 524340, ;; Tag
|
||||
i32 0, ;; Unused
|
||||
metadata !1, ;; Context
|
||||
metadata !"MyGlobal", ;; Name
|
||||
metadata !"MyGlobal", ;; Display Name
|
||||
metadata !"MyGlobal", ;; Linkage Name
|
||||
metadata !3, ;; Compile Unit
|
||||
i32 1, ;; Line Number
|
||||
metadata !4, ;; Type
|
||||
i1 false, ;; Is a local variable
|
||||
i1 true, ;; Is this a definition
|
||||
i32* @MyGlobal ;; The global variable
|
||||
i32 786449, ;; Tag
|
||||
i32 0, ;; Context
|
||||
i32 4, ;; Language
|
||||
metadata !"foo.cpp", ;; File
|
||||
metadata !"/Volumes/Data/tmp", ;; Directory
|
||||
metadata !"clang version 3.1 ", ;; Producer
|
||||
i1 true, ;; Deprecated field
|
||||
i1 false, ;; "isOptimized"?
|
||||
metadata !"", ;; Flags
|
||||
i32 0, ;; Runtime Version
|
||||
metadata !1, ;; Enum Types
|
||||
metadata !1, ;; Retained Types
|
||||
metadata !1, ;; Subprograms
|
||||
metadata !3 ;; Global Variables
|
||||
} ; [ DW_TAG_compile_unit ]
|
||||
|
||||
;; The Array of Global Variables
|
||||
!3 = metadata !{
|
||||
metadata !4
|
||||
}
|
||||
|
||||
!4 = metadata !{
|
||||
metadata !5
|
||||
}
|
||||
|
||||
;;
|
||||
;; Define the basic type of 32 bit signed integer. Note that since int is an
|
||||
;; intrinsic type the source file is NULL and line 0.
|
||||
;; Define the global variable itself.
|
||||
;;
|
||||
!4 = metadata !{
|
||||
i32 524324, ;; Tag
|
||||
metadata !1, ;; Context
|
||||
metadata !"int", ;; Name
|
||||
metadata !1, ;; File
|
||||
i32 0, ;; Line number
|
||||
i64 32, ;; Size in Bits
|
||||
i64 32, ;; Align in Bits
|
||||
i64 0, ;; Offset in Bits
|
||||
i32 0, ;; Flags
|
||||
i32 5 ;; Encoding
|
||||
}
|
||||
!5 = metadata !{
|
||||
i32 786484, ;; Tag
|
||||
i32 0, ;; Unused
|
||||
null, ;; Unused
|
||||
metadata !"MyGlobal", ;; Name
|
||||
metadata !"MyGlobal", ;; Display Name
|
||||
metadata !"", ;; Linkage Name
|
||||
metadata !6, ;; File
|
||||
i32 1, ;; Line
|
||||
metadata !7, ;; Type
|
||||
i32 0, ;; IsLocalToUnit
|
||||
i32 1, ;; IsDefinition
|
||||
i32* @MyGlobal ;; LLVM-IR Value
|
||||
} ; [ DW_TAG_variable ]
|
||||
|
||||
;;
|
||||
;; Define the file
|
||||
;;
|
||||
!6 = metadata !{
|
||||
i32 786473, ;; Tag
|
||||
metadata !"foo.cpp", ;; File
|
||||
metadata !"/Volumes/Data/tmp", ;; Directory
|
||||
null ;; Unused
|
||||
} ; [ DW_TAG_file_type ]
|
||||
|
||||
;;
|
||||
;; Define the type
|
||||
;;
|
||||
!7 = metadata !{
|
||||
i32 786468, ;; Tag
|
||||
null, ;; Unused
|
||||
metadata !"int", ;; Name
|
||||
null, ;; Unused
|
||||
i32 0, ;; Line
|
||||
i64 32, ;; Size in Bits
|
||||
i64 32, ;; Align in Bits
|
||||
i64 0, ;; Offset
|
||||
i32 0, ;; Flags
|
||||
i32 5 ;; Encoding
|
||||
} ; [ DW_TAG_base_type ]
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user