about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-05-06 16:07:14 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-05-06 16:07:28 -0700
commite2f7f11d471f30f49e858b88c0c0411fc5d5e187 (patch)
tree4d2b6c7f10de8c0204c3bb19e024145cdc501d32 /src/rustllvm/RustWrapper.cpp
parentc624ed72b12bd17a14328c9cbf319c85f2caa384 (diff)
downloadrust-e2f7f11d471f30f49e858b88c0c0411fc5d5e187.tar.gz
rust-e2f7f11d471f30f49e858b88c0c0411fc5d5e187.zip
Put out burning linux tinderbox.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index 20894ed83fd..b1705f10ae3 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -43,9 +43,13 @@ extern "C" const char *LLVMRustGetLastError(void) {
 }
 
 extern "C" void LLVMAddBasicAliasAnalysisPass(LLVMPassManagerRef PM);
+extern "C" void LLVMAddStandardModulePasses(LLVMPassManagerRef PM,
+    unsigned int OptimizationLevel, bool OptimizeSize, bool UnitAtATime,
+    bool UnrollLoops, bool SimplifyLibCalls, bool HaveExceptions,
+    unsigned int InliningThreshold);
 
-void (*RustHackToFetchPassesO)(LLVMPassManagerRef PM) =
-  LLVMAddBasicAliasAnalysisPass;
+int *RustHackToFetchPassesO = (int*)LLVMAddBasicAliasAnalysisPass;
+int *RustHackToFetchPasses2O = (int*)LLVMAddStandardModulePasses;
 
 enum LLVMCodeGenFileType {
   LLVMAssemblyFile,