]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_llvm/src/lib.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / compiler / rustc_llvm / src / lib.rs
index 122627eb500ada1b69f2d38924d63e9f4069dcc9..6493bd91ca27a836c54cb21bd80914b654474e6f 100644 (file)
@@ -17,6 +17,10 @@ impl RustString {
     pub fn len(&self) -> usize {
         self.bytes.borrow().len()
     }
+
+    pub fn is_empty(&self) -> bool {
+        self.bytes.borrow().is_empty()
+    }
 }
 
 /// Appending to a Rust string -- used by RawRustStringOstream.
@@ -90,6 +94,14 @@ pub fn initialize_available_targets() {
         LLVMInitializeAVRAsmPrinter,
         LLVMInitializeAVRAsmParser
     );
+    init_target!(
+        llvm_component = "m68k",
+        LLVMInitializeM68kTargetInfo,
+        LLVMInitializeM68kTarget,
+        LLVMInitializeM68kTargetMC,
+        LLVMInitializeM68kAsmPrinter,
+        LLVMInitializeM68kAsmParser
+    );
     init_target!(
         llvm_component = "mips",
         LLVMInitializeMipsTargetInfo,