1
- // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -183,7 +183,7 @@ pub mod write {
183
183
llvm:: LLVMDisposePassManager ( mpm) ;
184
184
185
185
// Emit the bytecode if we're either saving our temporaries or
186
- // emitting an rlib. Whenever an rlib is create , the bytecode is
186
+ // emitting an rlib. Whenever an rlib is created , the bytecode is
187
187
// inserted into the archive in order to allow LTO against it.
188
188
let outputs = sess. outputs . borrow ( ) ;
189
189
if sess. opts . save_temps ||
@@ -314,7 +314,7 @@ pub mod write {
314
314
use std:: unstable:: mutex:: { Once , ONCE_INIT } ;
315
315
static mut INIT : Once = ONCE_INIT ;
316
316
317
- // Copy what clan does by turning on loop vectorization at O2 and
317
+ // Copy what clang does by turning on loop vectorization at O2 and
318
318
// slp vectorization at O3
319
319
let vectorize_loop = !sess. no_vectorize_loops ( ) &&
320
320
( sess. opts . optimize == session:: Default ||
@@ -347,7 +347,7 @@ pub mod write {
347
347
// Only initialize the platforms supported by Rust here, because
348
348
// using --llvm-root will have multiple platforms that rustllvm
349
349
// doesn't actually link to and it's pointless to put target info
350
- // into the registry that Rust can not generate machine code for.
350
+ // into the registry that Rust cannot generate machine code for.
351
351
llvm:: LLVMInitializeX86TargetInfo ( ) ;
352
352
llvm:: LLVMInitializeX86Target ( ) ;
353
353
llvm:: LLVMInitializeX86TargetMC ( ) ;
@@ -381,7 +381,7 @@ pub mod write {
381
381
let builder = llvm:: LLVMPassManagerBuilderCreate ( ) ;
382
382
match opt {
383
383
lib:: llvm:: CodeGenLevelNone => {
384
- // Don't add lifetime intrinsics add O0
384
+ // Don't add lifetime intrinsics at O0
385
385
llvm:: LLVMRustAddAlwaysInlinePass ( builder, false ) ;
386
386
}
387
387
lib:: llvm:: CodeGenLevelLess => {
@@ -591,7 +591,7 @@ pub fn mangle(sess: Session, ss: ast_map::Path,
591
591
//
592
592
// It turns out that on OSX you can actually have arbitrary symbols in
593
593
// function names (at least when given to LLVM), but this is not possible
594
- // when using unix's linker. Perhaps one day when we just a linker from LLVM
594
+ // when using unix's linker. Perhaps one day when we just use a linker from LLVM
595
595
// we won't need to do this name mangling. The problem with name mangling is
596
596
// that it seriously limits the available characters. For example we can't
597
597
// have things like @T or ~[T] in symbol names when one would theoretically
@@ -894,7 +894,7 @@ fn link_rlib(sess: Session,
894
894
// determine the architecture of the archive in order to see whether its
895
895
// linkable.
896
896
//
897
- // The algorithm for this detections is: iterate over the files in the
897
+ // The algorithm for this detection is: iterate over the files in the
898
898
// archive. Skip magical SYMDEF names. Interpret the first file as an
899
899
// object file. Read architecture from the object file.
900
900
//
@@ -941,7 +941,7 @@ fn link_rlib(sess: Session,
941
941
// Create a static archive
942
942
//
943
943
// This is essentially the same thing as an rlib, but it also involves adding
944
- // all of the upstream crates' objects into the the archive. This will slurp in
944
+ // all of the upstream crates' objects into the archive. This will slurp in
945
945
// all of the native libraries of upstream dependencies as well.
946
946
//
947
947
// Additionally, there's no way for us to link dynamic libraries, so we warn
@@ -1058,7 +1058,7 @@ fn link_args(sess: Session,
1058
1058
if sess. targ_cfg . os == abi:: OsLinux {
1059
1059
// GNU-style linkers will use this to omit linking to libraries which
1060
1060
// don't actually fulfill any relocations, but only for libraries which
1061
- // follow this flag. Thus, use it before specifing libraries to link to.
1061
+ // follow this flag. Thus, use it before specifying libraries to link to.
1062
1062
args. push ( ~"-Wl , --as-needed") ;
1063
1063
1064
1064
// GNU-style linkers support optimization with -O. --gc-sections
@@ -1074,7 +1074,7 @@ fn link_args(sess: Session,
1074
1074
if sess. targ_cfg . os == abi:: OsWin32 {
1075
1075
// Make sure that we link to the dynamic libgcc, otherwise cross-module
1076
1076
// DWARF stack unwinding will not work.
1077
- // This behavior may be overriden by --link-args "-static-libgcc"
1077
+ // This behavior may be overridden by --link-args "-static-libgcc"
1078
1078
args. push ( ~"-shared-libgcc") ;
1079
1079
}
1080
1080
@@ -1124,7 +1124,7 @@ fn link_args(sess: Session,
1124
1124
1125
1125
// # Native library linking
1126
1126
//
1127
- // User-supplied library search paths (-L on the cammand line) These are
1127
+ // User-supplied library search paths (-L on the command line). These are
1128
1128
// the same paths used to find Rust crates, so some of them may have been
1129
1129
// added already by the previous crate linking code. This only allows them
1130
1130
// to be found at compile time so it is still entirely up to outside
@@ -1182,12 +1182,12 @@ fn add_upstream_rust_crates(args: &mut ~[~str], sess: Session,
1182
1182
if !dylib && !sess. prefer_dynamic ( ) {
1183
1183
// With an executable, things get a little interesting. As a limitation
1184
1184
// of the current implementation, we require that everything must be
1185
- // static, or everything must be dynamic. The reasons for this are a
1185
+ // static or everything must be dynamic. The reasons for this are a
1186
1186
// little subtle, but as with the above two cases, the goal is to
1187
1187
// prevent duplicate copies of the same library showing up. For example,
1188
1188
// a static immediate dependency might show up as an upstream dynamic
1189
1189
// dependency and we currently have no way of knowing that. We know that
1190
- // all dynamic libaries require dynamic dependencies (see above), so
1190
+ // all dynamic libraries require dynamic dependencies (see above), so
1191
1191
// it's satisfactory to include either all static libraries or all
1192
1192
// dynamic libraries.
1193
1193
let crates = cstore. get_used_crates ( cstore:: RequireStatic ) ;
@@ -1232,7 +1232,7 @@ fn add_upstream_rust_crates(args: &mut ~[~str], sess: Session,
1232
1232
}
1233
1233
1234
1234
// If we're performing LTO, then it should have been previously required
1235
- // that all upstream rust depenencies were available in an rlib format.
1235
+ // that all upstream rust dependencies were available in an rlib format.
1236
1236
assert ! ( !sess. lto( ) ) ;
1237
1237
1238
1238
// This is a fallback of three different cases of linking:
0 commit comments