Skip to content

Commit 6927314

Browse files
committed
---
yaml --- r: 2968 b: refs/heads/master c: d360c48 h: refs/heads/master v: v3
1 parent 152607f commit 6927314

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 2c16be424b86e5599851da74d98191560744c46d
2+
refs/heads/master: d360c481e8bd6079eb92b155a7c5451fc8bd35f6

trunk/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)