From 5d2a6c73ca5b0e082c3fb2a3eee40e18029355f9 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 5 Jan 2011 15:31:35 -0800 Subject: Use uniform pair representation of functions everywhere, including static functions. --- src/comp/lib/llvm.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/comp/lib') 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. -- cgit v1.2.3