From d089d9f9ed01464940ef6e383ec239bbd5612e8c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 6 May 2011 12:02:04 -0700 Subject: rustllvm: Add a binding to the LLVM standard module passes --- src/comp/lib/llvm.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/comp/lib') diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index f825e05d..1d2529cc 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -802,6 +802,16 @@ native mod llvm = llvm_lib { fn LLVMAddTypeBasedAliasAnalysisPass(PassManagerRef PM); fn LLVMAddBasicAliasAnalysisPass(PassManagerRef PM); + // FIXME: Native stubs don't allow this many arguments yet. + /*fn LLVMAddStandardModulePasses(PassManagerRef PM, + uint OptimizationLevel, + Bool OptimizeSize, + Bool UnitAtATime, + Bool UnrollLoops, + Bool SimplifyLibCalls, + Bool HaveExceptions, + uint InliningThreshold);*/ + /** Destroys a memory buffer. */ fn LLVMDisposeMemoryBuffer(MemoryBufferRef MemBuf); -- cgit v1.2.3