about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2020-10-12 22:33:27 -0400
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2021-01-14 22:49:16 -0500
commitcd2580722375671fa2967661f65b7b33570547ec (patch)
tree2a7c80c04b77f40691edd1da05e0d54e0930873f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente38fb306b7f5e65cca34df2dab1f0db15e1defb4 (diff)
downloadrust-cd2580722375671fa2967661f65b7b33570547ec.tar.gz
rust-cd2580722375671fa2967661f65b7b33570547ec.zip
Use probe-stack=inline-asm in LLVM 11+
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index 1d6f00562f1..1d89fc80496 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -660,6 +660,8 @@ extern "C" uint32_t LLVMRustDebugMetadataVersion() {
   return DEBUG_METADATA_VERSION;
 }
 
+extern "C" uint32_t LLVMRustVersionPatch() { return LLVM_VERSION_PATCH; }
+
 extern "C" uint32_t LLVMRustVersionMinor() { return LLVM_VERSION_MINOR; }
 
 extern "C" uint32_t LLVMRustVersionMajor() { return LLVM_VERSION_MAJOR; }