Skip to content

Commit a83a114

Browse files
lhtbrson
authored andcommitted
---
yaml --- r: 6194 b: refs/heads/master c: 2532423 h: refs/heads/master v: v3
1 parent b68ad31 commit a83a114

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8857657640f16da938de9e24cc4adf6960e29784
2+
refs/heads/master: 253242390ce54200a4c547dbb6c5f6e07c5cc6ec

trunk/man/rustc.1

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ output filename for \fBfoo.rs\fR is otherwise \fBfoo\fR plus any
2525
platform-specific extension (when compiling a binary), a
2626
platform-specific name, e.g. \fBlibfoo.so\fR (when compiling a
2727
library), \fBfoo.o\fR (when using \fB-c\fR), \fBfoo.s\fR (when using
28-
\fB-S\fR) or \fBfoo.bc\fR (when using \fB--emit-llvm\fR), and
28+
\fB-S\fR) or \fBfoo.bc\fR (when using \fB--emit-llvm\fR), and \fBfoo.ll\fR
29+
(when using both \fB-S\fR and \fB--emit-llvm\fR).
2930
.TP
3031
\fB--lib\fR:
3132
Compile and link a library crate into a shared object.
@@ -82,7 +83,9 @@ Compile to assembly, but do not assemble or link.
8283
Compile and assemble, but do not link.
8384
.TP
8485
\fB--emit-llvm\fR:
85-
Generate llvm bitcode.
86+
Generate output files in LLVM format. When used with \fB-S\fR this generate LLVM
87+
intermediate language assembly files, otherwise this generates LLVM bitcode
88+
format object files.
8689
.TP
8790
\fB--save-temps\fR:
8891
For foo.rs, save generated bitcode before optimization to

trunk/src/comp/driver/rustc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ fn build_output_filenames(ifile: str, ofile: option::t<str>,
477477
link::output_type_none. { "none" }
478478
link::output_type_bitcode. { "bc" }
479479
link::output_type_assembly. { "s" }
480-
link::output_type_llvm_assembly. { "s" }
480+
link::output_type_llvm_assembly. { "ll" }
481481
// Object and exe output both use the '.o' extension here
482482
link::output_type_object. | link::output_type_exe. {
483483
"o"

0 commit comments

Comments
 (0)