rustllvm: Add a binding to the LLVM standard module passes

This commit is contained in:
Patrick Walton
2011-05-06 12:02:04 -07:00
parent 5e2088f2fa
commit d089d9f9ed
4 changed files with 36 additions and 1 deletions

View File

@@ -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);