Convert a few std::string with StringRef. NFC.
[oota-llvm.git] / docs / SourceLevelDebugging.rst
index 9ec5e0dd7707926f3d896513c7687213ff69f6ac..3a5fa6ef24bed6e325ae7f0b345091cce75501dc 100644 (file)
@@ -887,7 +887,7 @@ a C/C++ front-end would generate the following descriptors:
   ;;
   ;; Define the global itself.
   ;;
-  %MyGlobal = global int 100
+  @MyGlobal = global i32 100, align 4
   ...
   ;;
   ;; List of debug info of globals
@@ -935,13 +935,13 @@ a C/C++ front-end would generate the following descriptors:
   ;;
   !4 = metadata !{
     ; Header(
-    ;   i32 52,                          ;; Tag
-    ;   metadata !"MyGlobal",            ;; Name
-    ;   metadata !"MyGlobal",            ;; Display Name
-    ;   metadata !"",                    ;; Linkage Name
-    ;   i32 1,                           ;; Line
-    ;   i32 0,                           ;; IsLocalToUnit
-    ;   i32 1                            ;; IsDefinition
+    ;   i32 52,                        ;; Tag
+    ;   metadata !"MyGlobal",          ;; Name
+    ;   metadata !"MyGlobal",          ;; Display Name
+    ;   metadata !"",                  ;; Linkage Name
+    ;   i32 1,                         ;; Line
+    ;   i32 0,                         ;; IsLocalToUnit
+    ;   i32 1                          ;; IsDefinition
     ; )
     metadata !"0x34\00MyGlobal\00MyGlobal\00\001\000\001",
     null,                              ;; Unused
@@ -967,14 +967,14 @@ a C/C++ front-end would generate the following descriptors:
   ;;
   !6 = metadata !{
     ; Header(
-    ;   i32 36,                         ;; Tag
-    ;   metadata !"int",                ;; Name
-    ;   i32 0,                          ;; Line
-    ;   i64 32,                         ;; Size in Bits
-    ;   i64 32,                         ;; Align in Bits
-    ;   i64 0,                          ;; Offset
-    ;   i32 0,                          ;; Flags
-    ;   i32 5                           ;; Encoding
+    ;   i32 36,                       ;; Tag
+    ;   metadata !"int",              ;; Name
+    ;   i32 0,                        ;; Line
+    ;   i64 32,                       ;; Size in Bits
+    ;   i64 32,                       ;; Align in Bits
+    ;   i64 0,                        ;; Offset
+    ;   i32 0,                        ;; Flags
+    ;   i32 5                         ;; Encoding
     ; )
     metadata !"0x24\00int\000\0032\0032\000\000\005",
     null,                             ;; Unused
@@ -1001,18 +1001,18 @@ a C/C++ front-end would generate the following descriptors:
   ;;
   !6 = metadata !{
     ; Header(
-    ;   i32 46,            ;; Tag
-    ;   metadata !"main",  ;; Name
-    ;   metadata !"main",  ;; Display name
-    ;   metadata !"",      ;; Linkage name
-    ;   i32 1,             ;; Line number
-    ;   i1 false,          ;; Is local
-    ;   i1 true,           ;; Is definition
-    ;   i32 0,             ;; Virtuality attribute, e.g. pure virtual function
-    ;   i32 0,             ;; Index into virtual table for C++ methods
-    ;   i32 256,           ;; Flags
-    ;   i1 0,              ;; True if this function is optimized
-    ;   1                  ;; Line number of the opening '{' of the function
+    ;   i32 46,             ;; Tag
+    ;   metadata !"main",   ;; Name
+    ;   metadata !"main",   ;; Display name
+    ;   metadata !"",       ;; Linkage name
+    ;   i32 1,              ;; Line number
+    ;   i1 false,           ;; Is local
+    ;   i1 true,            ;; Is definition
+    ;   i32 0,              ;; Virtuality attribute, e.g. pure virtual function
+    ;   i32 0,              ;; Index into virtual table for C++ methods
+    ;   i32 256,            ;; Flags
+    ;   i1 0,               ;; True if this function is optimized
+    ;   1                   ;; Line number of the opening '{' of the function
     ; )
     metadata !"0x2e\00main\00main\00\001\000\001\000\000\00256\000\001",
     metadata !1,            ;; File
@@ -1214,21 +1214,33 @@ New DWARF Attributes
 New DWARF Constants
 ^^^^^^^^^^^^^^^^^^^
 
-+--------------------------------+-------+
-| Name                           | Value |
-+================================+=======+
-| DW_AT_APPLE_PROPERTY_readonly  | 0x1   |
-+--------------------------------+-------+
-| DW_AT_APPLE_PROPERTY_readwrite | 0x2   |
-+--------------------------------+-------+
-| DW_AT_APPLE_PROPERTY_assign    | 0x4   |
-+--------------------------------+-------+
-| DW_AT_APPLE_PROPERTY_retain    | 0x8   |
-+--------------------------------+-------+
-| DW_AT_APPLE_PROPERTY_copy      | 0x10  |
-+--------------------------------+-------+
-| DW_AT_APPLE_PROPERTY_nonatomic | 0x20  |
-+--------------------------------+-------+
++--------------------------------------+-------+
+| Name                                 | Value |
++======================================+=======+
+| DW_APPLE_PROPERTY_readonly           | 0x01  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_getter             | 0x02  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_assign             | 0x04  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_readwrite          | 0x08  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_retain             | 0x10  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_copy               | 0x20  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_nonatomic          | 0x40  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_setter             | 0x80  |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_atomic             | 0x100 |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_weak               | 0x200 |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_strong             | 0x400 |
++--------------------------------------+-------+
+| DW_APPLE_PROPERTY_unsafe_unretained  | 0x800 |
++--------------------------------+-----+-------+
 
 Name Accelerator Tables
 -----------------------