summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.rst
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2018-08-06 02:30:01 +0000
committerChandler Carruth <chandlerc@gmail.com>2018-08-06 02:30:01 +0000
commit24dd211f053b8d7fd211c98b96e4f645d4f95182 (patch)
tree0f2a7e91bdd720348cec58c5fc876ae88ccc8a85 /llvm/docs/LangRef.rst
parent297620d3371f8aaea15c14ba1b62e447f1ffea0b (diff)
downloadbcm5719-llvm-24dd211f053b8d7fd211c98b96e4f645d4f95182.tar.gz
bcm5719-llvm-24dd211f053b8d7fd211c98b96e4f645d4f95182.zip
[docs] Correct the basic syntax structure of the DISubrange example.
Notably, just close two of the debug info metadata nodes early rather than leaving them open with `...` which won't ever lex correctly. And add the missing `:` on the count labels. Slowly progressing through all of the warnings on the documentation build bot. Sorry to do this one commit at a time, but despite my best efforts I can't trigger these errors locally. llvm-svn: 338982
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r--llvm/docs/LangRef.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index c05dd102fa9..e70c754207e 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -4400,17 +4400,17 @@ DISubrange
; Scopes used in rest of example
!6 = !DIFile(filename: "vla.c", directory: "/path/to/file")
- !7 = distinct !DICompileUnit(language: DW_LANG_C99, ...
- !8 = distinct !DISubprogram(name: "foo", scope: !7, file: !6, line: 5, ...
+ !7 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6)
+ !8 = distinct !DISubprogram(name: "foo", scope: !7, file: !6, line: 5)
; Use of local variable as count value
!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
!10 = !DILocalVariable(name: "count", scope: !8, file: !6, line: 42, type: !9)
- !11 = !DISubrange(count !10, lowerBound: 0)
+ !11 = !DISubrange(count: !10, lowerBound: 0)
; Use of global variable as count value
!12 = !DIGlobalVariable(name: "count", scope: !8, file: !6, line: 22, type: !9)
- !13 = !DISubrange(count !12, lowerBound: 0)
+ !13 = !DISubrange(count: !12, lowerBound: 0)
.. _DIEnumerator:
OpenPOWER on IntegriCloud