about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-04-13 13:53:19 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-04-13 13:54:08 -0400
commite7b8db2e633f71da868fac22da5c050dcb922788 (patch)
tree2dec6ad5d4352a8ba4905dc5b66706b7aa7fc544 /src/rustllvm/RustWrapper.cpp
parent6909e7ca7872ef8672e3f044b6648f5b78af64d8 (diff)
downloadrust-e7b8db2e633f71da868fac22da5c050dcb922788.tar.gz
rust-e7b8db2e633f71da868fac22da5c050dcb922788.zip
Enable alias analysis and the function attributes pass.
The C API extension is already upstream, we can drop the local copy once
the bots are updated.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index 34346914940..aa17184ceb9 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -31,3 +31,8 @@ extern "C" const char *LLVMRustGetLastError(void) {
 
 LLVMOpaqueObjectFile* (*RustHackToFetchObjectO)(LLVMOpaqueMemoryBuffer*)
   = LLVMCreateObjectFile;
+
+extern "C" void LLVMAddBasicAliasAnalysisPass(LLVMPassManagerRef PM);
+
+void (*RustHackToFetchPassesO)(LLVMPassManagerRef PM) =
+  LLVMAddBasicAliasAnalysisPass;