From b4a0d891c0a5eac32896650214abfe62cc1ea5a0 Mon Sep 17 00:00:00 2001 From: Kelly Wilson Date: Fri, 6 May 2011 07:59:33 -0600 Subject: Ge the host triple using LLVM. Fix a few 'mutable' warnings also. --- src/comp/lib/llvm.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/comp/lib') diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index cfa82b03..f825e05d 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -848,6 +848,9 @@ native mod llvm = llvm_lib { call. */ fn LLVMRustGetLastError() -> sbuf; + /** Returns a string describing the hosts triple */ + fn LLVMRustGetHostTriple() -> sbuf; + /** Parses the bitcode in the given memory buffer. */ fn LLVMRustParseBitcode(MemoryBufferRef MemBuf) -> ModuleRef; -- cgit v1.2.3