aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-06 12:02:04 -0700
committerPatrick Walton <[email protected]>2011-05-06 12:38:00 -0700
commitd089d9f9ed01464940ef6e383ec239bbd5612e8c (patch)
treebbf2f7067e12ab91ae9536dd49fe49e6bfbebb9d /src/comp
parentrustc: For stack local derived tydescs, allocate the root tydesc separately f... (diff)
downloadrust-d089d9f9ed01464940ef6e383ec239bbd5612e8c.tar.xz
rust-d089d9f9ed01464940ef6e383ec239bbd5612e8c.zip
rustllvm: Add a binding to the LLVM standard module passes
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/lib/llvm.rs10
1 files changed, 10 insertions, 0 deletions
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);