about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-06-08 11:55:04 +0000
committerbors <bors@rust-lang.org>2015-06-08 11:55:04 +0000
commit115121de3d4669a798e99aa69dfdbc7012b4181c (patch)
tree110ed67c5a218b0208013515017879efc5e79976 /src/rustllvm/RustWrapper.cpp
parent1ade076f62c9e8188c4fb5c888277a1673ac82cd (diff)
parente36e97ba51f512de2fd05e3250db4a7b72caae04 (diff)
downloadrust-115121de3d4669a798e99aa69dfdbc7012b4181c.tar.gz
rust-115121de3d4669a798e99aa69dfdbc7012b4181c.zip
Auto merge of #26088 - tamird:llvm35-fixes, r=alexcrichton
rebase of #25739, closes #25739. r? @alexcrichton 
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index 66db7326d21..ad6533e5480 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -233,10 +233,18 @@ DIT unwrapDI(LLVMMetadataRef ref) {
     return DIT(ref ? unwrap<MDNode>(ref) : NULL);
 }
 
-extern "C" const uint32_t LLVMRustDebugMetadataVersion() {
+extern "C" uint32_t LLVMRustDebugMetadataVersion() {
     return DEBUG_METADATA_VERSION;
 }
 
+extern "C" uint32_t LLVMVersionMinor() {
+  return LLVM_VERSION_MINOR;
+}
+
+extern "C" uint32_t LLVMVersionMajor() {
+  return LLVM_VERSION_MAJOR;
+}
+
 extern "C" void LLVMRustAddModuleFlag(LLVMModuleRef M,
                                       const char *name,
                                       uint32_t value) {