Skip to content

Commit 3f743fd

Browse files
[Flang][Docs] Fix lexer issue in Driver and Trampoline doc (#72322)
Allowed lexers are documented in https://pygments.org/docs/lexers/.
1 parent d7b8ea6 commit 3f743fd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

flang/docs/FlangDriver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ Note that similarly to `-Xclang` in `clang`, you can use `-Xflang` to forward a
6161
frontend specific flag from the _compiler_ directly to the _frontend_ driver,
6262
e.g.:
6363

64-
```lang=bash
64+
```bash
6565
flang-new -Xflang -fdebug-dump-parse-tree input.f95
6666
```
6767

6868
In the invocation above, `-fdebug-dump-parse-tree` is forwarded to `flang-new
6969
-fc1`. Without the forwarding flag, `-Xflang`, you would see the following
7070
warning:
7171

72-
```lang=bash
72+
```bash
7373
flang-new: warning: argument unused during compilation:
7474
```
7575

flang/docs/InternalProcedureTrampolines.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ as an actual argument to `foo()`.
170170

171171
The trampoline has the following structure:
172172

173-
```assembly
173+
```asm
174174
callee_trampoline:
175-
MOV <static-chain-address>, R#
176-
JMP <callee-address>
175+
MOV static-chain-address, R#
176+
JMP callee-address
177177
```
178178

179179
Where:
180-
- `<callee-address>` is the address of function `callee()`.
181-
- `<static-chain-address>` - the address of the static chain
180+
- `callee-address` is the address of function `callee()`.
181+
- `static-chain-address` - the address of the static chain
182182
object created inside `host()`.
183183
- `R#` is a target specific register.
184184

@@ -249,7 +249,7 @@ One of the options is to use separate allocations for the trampoline code
249249
and the trampoline "data".
250250
251251
The trampolines may be located in non-writeable executable memory:
252-
```assembly
252+
```asm
253253
trampoline0:
254254
MOV (TDATA[0].static_chain_address), R#
255255
JMP (TDATA[0].callee_address)

0 commit comments

Comments
 (0)