Skip to content

Commit d049281

Browse files
authored
Merge pull request swiftlang#32129 from milrope/patch-1
docs: change bash to sh in markdown syntax
2 parents 1d0065d + 88c82f4 commit d049281

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/DebuggingTheCompiler.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ Here is how to dump the IR after the main phases of the Swift compiler
6464

6565
* **Parser** To print the AST after parsing:
6666

67-
```bash
67+
```sh
6868
swiftc -dump-ast -O file.swift
6969
```
7070

7171
* **SILGen** To print the SIL immediately after SILGen:
7272

73-
```bash
73+
```sh
7474
swiftc -emit-silgen -O file.swift
7575
```
7676

7777
* **Mandatory SIL passes** To print the SIL after the mandatory passes:
7878

79-
```bash
79+
```sh
8080
swiftc -emit-sil -Onone file.swift
8181
```
8282

@@ -87,25 +87,25 @@ swiftc -emit-sil -Onone file.swift
8787
* **Performance SIL passes** To print the SIL after the complete SIL
8888
optimization pipeline:
8989

90-
```bash
90+
```sh
9191
swiftc -emit-sil -O file.swift
9292
```
9393

9494
* **IRGen** To print the LLVM IR after IR generation:
9595

96-
```bash
96+
```sh
9797
swiftc -emit-ir -Xfrontend -disable-llvm-optzns -O file.swift
9898
```
9999

100100
* **LLVM passes** To print the LLVM IR after LLVM passes:
101101

102-
```bash
102+
```sh
103103
swiftc -emit-ir -O file.swift
104104
```
105105

106106
* **Code generation** To print the final generated code:
107107

108-
```bash
108+
```sh
109109
swiftc -S -O file.swift
110110
```
111111

0 commit comments

Comments
 (0)