Skip to content

Commit aaecdc4

Browse files
committed
[docs] Update code block for compatibility with Sphinx 1.5.1
It is currently not possible to build the documentation with cmake and the same version of Sphinx (1.5.1) used to generate the public facing documentation on llvm.org. When code blocks cannot be parsed by Pygments, it generates a warning which is treated as an error. In addition to being annoying and confusing for developers, this needlessly increases the bar for newcomers that want to get involved. This patch removes the language specifier from the affected block. The result is the same as when parsing fails: the block are not highlighted. llvm-svn: 317472
1 parent 6691758 commit aaecdc4

File tree

5 files changed

+70
-70
lines changed

5 files changed

+70
-70
lines changed

llvm/docs/CommandGuide/lli.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ CODE GENERATION OPTIONS
122122

123123
Choose the code model from:
124124

125-
.. code-block:: perl
125+
.. code-block:: text
126126
127127
default: Target default code model
128128
small: Small code model
@@ -154,7 +154,7 @@ CODE GENERATION OPTIONS
154154

155155
Instruction schedulers available (before register allocation):
156156

157-
.. code-block:: perl
157+
.. code-block:: text
158158
159159
=default: Best scheduler for the target
160160
=none: No scheduling: breadth first sequencing
@@ -168,7 +168,7 @@ CODE GENERATION OPTIONS
168168

169169
Register allocator to use (default=linearscan)
170170

171-
.. code-block:: perl
171+
.. code-block:: text
172172
173173
=bigblock: Big-block register allocator
174174
=linearscan: linear scan register allocator =local - local register allocator
@@ -178,7 +178,7 @@ CODE GENERATION OPTIONS
178178

179179
Choose relocation model from:
180180

181-
.. code-block:: perl
181+
.. code-block:: text
182182
183183
=default: Target default relocation model
184184
=static: Non-relocatable code =pic - Fully relocatable, position independent code
@@ -188,7 +188,7 @@ CODE GENERATION OPTIONS
188188

189189
Spiller to use (default=local)
190190

191-
.. code-block:: perl
191+
.. code-block:: text
192192
193193
=simple: simple spiller
194194
=local: local spiller
@@ -197,7 +197,7 @@ CODE GENERATION OPTIONS
197197

198198
Choose style of code to emit from X86 backend:
199199

200-
.. code-block:: perl
200+
.. code-block:: text
201201
202202
=att: Emit AT&T-style assembly
203203
=intel: Emit Intel-style assembly

llvm/docs/CommandGuide/llvm-pdbutil.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Symbol Type Options
142142

143143
Displays class definitions in the specified format.
144144

145-
.. code-block:: perl
145+
.. code-block:: text
146146
147147
=all - Display all class members including data, constants, typedefs, functions, etc (default)
148148
=layout - Only display members that contribute to class size.
@@ -152,7 +152,7 @@ Symbol Type Options
152152

153153
Displays classes in the specified order.
154154

155-
.. code-block:: perl
155+
.. code-block:: text
156156
157157
=none - Undefined / no particular sort order (default)
158158
=name - Sort classes by name
@@ -200,7 +200,7 @@ Symbol Type Options
200200
Type of symbols to dump when -globals, -externals, or -module-syms is
201201
specified. (default all)
202202

203-
.. code-block:: perl
203+
.. code-block:: text
204204
205205
=thunks - Display thunk symbols
206206
=data - Display data symbols
@@ -212,7 +212,7 @@ Symbol Type Options
212212
For symbols dumped via the -module-syms, -globals, or -externals options, sort
213213
the results in specified order.
214214

215-
.. code-block:: perl
215+
.. code-block:: text
216216
217217
=none - Undefined / no particular sort order
218218
=name - Sort symbols by name

llvm/docs/GetElementPtr.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ illegal.
196196
In order to access the 18th integer in the array, you would need to do the
197197
following:
198198

199-
.. code-block:: llvm
199+
.. code-block:: text
200200
201201
%idx = getelementptr { [40 x i32]* }, { [40 x i32]* }* %, i64 0, i32 0
202202
%arr = load [40 x i32]** %idx

0 commit comments

Comments
 (0)