Skip to content

Commit 5deb7d9

Browse files
wilsonkgraydon
authored andcommitted
---
yaml --- r: 2559 b: refs/heads/master c: b91ef94 h: refs/heads/master i: 2557: f850935 2555: 88f8dd8 2551: c118fe2 2543: ce9ee99 2527: 5d62f23 2495: b39f66b 2431: fb5433a 2303: bdcacc9 2047: 92c572a v: v3
1 parent b79ef6e commit 5deb7d9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 196351aa44e920e032d54545ccb74443858f3055
2+
refs/heads/master: b91ef944c8719933b66b4b649cfe3d5e1a676402

trunk/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

trunk/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)