Skip to content

Commit b91ef94

Browse files
wilsonkgraydon
authored andcommitted
Replace --bitcode with the canonical --emit-llvm
1 parent 196351a commit b91ef94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/comp/back/link.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ mod write {
171171
_str::buf(output), LLVMAssemblyFile);
172172
}
173173

174-
// Save the object file for -c or only --save-temps
175-
// is used and an exe is built
174+
// Save the object file for -c or --save-temps alone
175+
// This .o is needed when an exe is built
176176
if ((opts.output_type == output_type_object) ||
177177
(opts.output_type == output_type_exe)) {
178178
llvm::LLVMRustWriteOutputFile(pm.llpm, llmod,
@@ -197,7 +197,7 @@ mod write {
197197
ret;
198198
}
199199

200-
// If only a bitcode file is asked for by using the '--bitcode'
200+
// If only a bitcode file is asked for by using the '--emit-llvm'
201201
// flag, then output it here
202202
llvm::LLVMRunPassManager(pm.llpm, llmod);
203203

src/comp/driver/rustc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ options:
155155
-O optimize
156156
-S compile only; do not assemble or link
157157
-c compile and assemble, but do not link
158-
--bitcode produce an LLVM bitcode file
158+
--emit-llvm produce an LLVM bitcode file
159159
--save-temps write intermediate files in addition to normal output
160160
--stats gather and report various compilation statistics
161161
--time-passes time the individual phases of the compiler
@@ -207,7 +207,7 @@ fn main(vec[str] args) {
207207

208208
auto opts = vec(optflag("h"), optflag("help"),
209209
optflag("v"), optflag("version"),
210-
optflag("glue"), optflag("bitcode"),
210+
optflag("glue"), optflag("emit-llvm"),
211211
optflag("pretty"), optflag("ls"), optflag("parse-only"),
212212
optflag("O"), optflag("shared"), optmulti("L"),
213213
optflag("S"), optflag("c"), optopt("o"), optflag("g"),
@@ -250,7 +250,7 @@ fn main(vec[str] args) {
250250
output_type = link::output_type_assembly;
251251
} else if (opt_present(match, "c")) {
252252
output_type = link::output_type_object;
253-
} else if (opt_present(match, "bitcode")) {
253+
} else if (opt_present(match, "emit-llvm")) {
254254
output_type = link::output_type_bitcode;
255255
}
256256

0 commit comments

Comments
 (0)