aboutsummaryrefslogtreecommitdiff
path: root/src/rustllvm
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-05-06 16:07:14 -0700
committerGraydon Hoare <[email protected]>2011-05-06 16:07:28 -0700
commite2f7f11d471f30f49e858b88c0c0411fc5d5e187 (patch)
tree4d2b6c7f10de8c0204c3bb19e024145cdc501d32 /src/rustllvm
parentrustc: Uncomment LLVMAddStandardPasses, now that we have a native glue that s... (diff)
downloadrust-e2f7f11d471f30f49e858b88c0c0411fc5d5e187.tar.xz
rust-e2f7f11d471f30f49e858b88c0c0411fc5d5e187.zip
Put out burning linux tinderbox.
Diffstat (limited to 'src/rustllvm')
-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 20894ed8..b1705f10 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,