aboutsummaryrefslogtreecommitdiff
path: root/src/rustllvm
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-04-11 15:49:45 -0400
committerRafael Ávila de Espíndola <[email protected]>2011-04-11 15:49:45 -0400
commitfcb344799a5548850155bbfdc0085044f43b43e0 (patch)
treefabc848fbd3ad417cbe453c551ae47db957be8eb /src/rustllvm
parentImplement the "attempted dynamic environment-capture" error in rustc. (diff)
downloadrust-fcb344799a5548850155bbfdc0085044f43b43e0.tar.xz
rust-fcb344799a5548850155bbfdc0085044f43b43e0.zip
Add a hack to force the linker to fetch Object.o
Diffstat (limited to 'src/rustllvm')
-rw-r--r--src/rustllvm/RustWrapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index a604e4c2..34346914 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -29,3 +29,5 @@ extern "C" const char *LLVMRustGetLastError(void) {
return LLVMRustError;
}
+LLVMOpaqueObjectFile* (*RustHackToFetchObjectO)(LLVMOpaqueMemoryBuffer*)
+ = LLVMCreateObjectFile;