aboutsummaryrefslogtreecommitdiff
path: root/src/comp/lib
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-01-05 15:31:35 -0800
committerGraydon Hoare <[email protected]>2011-01-05 15:31:35 -0800
commit5d2a6c73ca5b0e082c3fb2a3eee40e18029355f9 (patch)
tree6318714f17b5298e3c81729dc988b028f928c7e9 /src/comp/lib
parentFix Yet Another Horrid Makefile Bug that was causing the run-fail tests to si... (diff)
downloadrust-5d2a6c73ca5b0e082c3fb2a3eee40e18029355f9.tar.xz
rust-5d2a6c73ca5b0e082c3fb2a3eee40e18029355f9.zip
Use uniform pair representation of functions everywhere, including static functions.
Diffstat (limited to 'src/comp/lib')
-rw-r--r--src/comp/lib/llvm.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 792642ad..624c56f9 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -42,6 +42,25 @@ const uint LLVMColdCallConv = 9u;
const uint LLVMX86StdcallCallConv = 64u;
const uint LLVMX86FastcallCallConv = 65u;
+
+const uint LLVMExternalLinkage = 0u;
+const uint LLVMAvailableExternallyLinkage = 1u;
+const uint LLVMLinkOnceAnyLinkage = 2u;
+const uint LLVMLinkOnceODRLinkage = 3u;
+const uint LLVMWeakAnyLinkage = 4u;
+const uint LLVMWeakODRLinkage = 5u;
+const uint LLVMAppendingLinkage = 6u;
+const uint LLVMInternalLinkage = 7u;
+const uint LLVMPrivateLinkage = 8u;
+const uint LLVMDLLImportLinkage = 9u;
+const uint LLVMDLLExportLinkage = 10u;
+const uint LLVMExternalWeakLinkage = 11u;
+const uint LLVMGhostLinkage = 12u;
+const uint LLVMCommonLinkage = 13u;
+const uint LLVMLinkerPrivateLinkage = 14u;
+const uint LLVMLinkerPrivateWeakLinkage = 15u;
+
+
// Consts for the LLVM IntPredicate type, pre-cast to uint.
// FIXME: as above.