about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorAndrew Sun <me@andrewsun.com>2021-01-07 23:25:19 -0500
committerAndrew Sun <me@andrewsun.com>2021-01-07 23:25:19 -0500
commitbc4c5bac408f96db0a0e1c8934ff0c403b3986d3 (patch)
treeac9c7c9aa95b6801ba9c00e564eb133871f440aa /compiler/rustc_codegen_llvm/src/llvm
parentbf801590503447cc5b1ddd520b39d2957d90368b (diff)
downloadrust-bc4c5bac408f96db0a0e1c8934ff0c403b3986d3.tar.gz
rust-bc4c5bac408f96db0a0e1c8934ff0c403b3986d3.zip
Use LLVMGetHostCPUFeatures instead of stdsimd
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 707aaa2b53f..e359d9f8c9c 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -1708,6 +1708,10 @@ extern "C" {
         PM: &PassManager<'_>,
     );
 
+    pub fn LLVMGetHostCPUFeatures() -> *mut c_char;
+
+    pub fn LLVMDisposeMessage(message: *mut c_char);
+
     // Stuff that's in llvm-wrapper/ because it's not upstream yet.
 
     /// Opens an object file.