about summary refs log tree commit diff
diff options
context:
space:
mode:
-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: