Skip to content

Commit d360c48

Browse files
committed
Don't force the fetch of main.o from main.a, we are not using main.a anymore.
1 parent 2c16be4 commit d360c48

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/comp/middle/trans.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8238,17 +8238,6 @@ fn trans_crate(&session::session sess, &@ast::crate crate,
82388238
trans_mod(cx, crate.node.module);
82398239
auto crate_map = create_crate_map(ccx);
82408240

8241-
if (!sess.get_opts().shared) {
8242-
auto gvar = llvm::LLVMAddGlobal(cx.ccx.llmod, T_ptr(T_int()),
8243-
str::buf("_rust_fetch_this_object_hack"));
8244-
8245-
auto gvar2 = llvm::LLVMAddGlobal(cx.ccx.llmod, T_ptr(T_ptr(T_int())),
8246-
str::buf("_rust_fetch_this_object_hack2"));
8247-
llvm::LLVMSetInitializer(gvar2, gvar);
8248-
llvm::LLVMSetGlobalConstant(gvar, True);
8249-
llvm::LLVMSetGlobalConstant(gvar2, True);
8250-
}
8251-
82528241
emit_tydescs(ccx);
82538242

82548243
// Translate the metadata:

0 commit comments

Comments
 (0)