]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_llvm/lib.rs
New upstream version 1.22.1+dfsg1
[rustc.git] / src / librustc_llvm / lib.rs
index 3c3e627ee4b36e71e5912ab5d1d1388bc699de6a..98172bca1778625da8ce88b02513b4788055a9b8 100644 (file)
 #![feature(link_args)]
 #![feature(static_nobundle)]
 
-extern crate libc;
+// See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
+#[allow(unused_extern_crates)]
+extern crate rustc_cratesio_shim;
+
 #[macro_use]
-#[no_link]
-extern crate rustc_bitflags;
+extern crate bitflags;
+extern crate libc;
 
 pub use self::IntPredicate::*;
 pub use self::RealPredicate::*;
@@ -343,10 +346,6 @@ pub fn initialize_available_targets() {
                  LLVMInitializePowerPCTargetMC,
                  LLVMInitializePowerPCAsmPrinter,
                  LLVMInitializePowerPCAsmParser);
-    init_target!(llvm_component = "pnacl",
-                 LLVMInitializePNaClTargetInfo,
-                 LLVMInitializePNaClTarget,
-                 LLVMInitializePNaClTargetMC);
     init_target!(llvm_component = "systemz",
                  LLVMInitializeSystemZTargetInfo,
                  LLVMInitializeSystemZTarget,