about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-06-08 13:47:21 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-06-08 13:47:21 -0400
commitd360c481e8bd6079eb92b155a7c5451fc8bd35f6 (patch)
tree5ca0dce3d0c9222456a660be0df9542c7ef13781 /src/comp
parent2c16be424b86e5599851da74d98191560744c46d (diff)
downloadrust-d360c481e8bd6079eb92b155a7c5451fc8bd35f6.tar.gz
rust-d360c481e8bd6079eb92b155a7c5451fc8bd35f6.zip
Don't force the fetch of main.o from main.a, we are not using main.a anymore.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 0fac5651f14..3780d2c86fb 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -8238,17 +8238,6 @@ fn trans_crate(&session::session sess, &@ast::crate crate,
     trans_mod(cx, crate.node.module);
     auto crate_map = create_crate_map(ccx);
 
-    if (!sess.get_opts().shared) {
-      auto gvar = llvm::LLVMAddGlobal(cx.ccx.llmod, T_ptr(T_int()),
-                                    str::buf("_rust_fetch_this_object_hack"));
-
-      auto gvar2 = llvm::LLVMAddGlobal(cx.ccx.llmod, T_ptr(T_ptr(T_int())),
-                                   str::buf("_rust_fetch_this_object_hack2"));
-     llvm::LLVMSetInitializer(gvar2, gvar);
-     llvm::LLVMSetGlobalConstant(gvar, True);
-     llvm::LLVMSetGlobalConstant(gvar2, True);
-   }
-
     emit_tydescs(ccx);
 
     // Translate the metadata: