Skip to content

Commit

Permalink
Remove last vestiges of old-style intrinsics
Browse files Browse the repository at this point in the history
Closes #2048
  • Loading branch information
marijnh committed Mar 23, 2012
1 parent 837478c commit 1b81c51
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 981 deletions.
1 change: 0 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ HSREQ$(1)_H_$(3) = \
TSREQ$(1)_T_$(2)_H_$(3) = \
$$(HSREQ$(1)_H_$(3)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUNTIME) \
$$(TLIB$(1)_T_$(2)_H_$(3))/intrinsics.bc \
$$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a

# Prerequisites for complete stageN targets
Expand Down
2 changes: 0 additions & 2 deletions mk/clean.mk
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ clean$(1)_T_$(2)_H_$(3):
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTC_GLOB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/intrinsics.bc
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/intrinsics.ll
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a
endef

Expand Down
1 change: 0 additions & 1 deletion mk/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ install-target-$(1)-host-$(2): $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(STDLIB_GLOB))
$$(Q)$$(call INSTALL_LIB, \
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(LIBRUSTC_GLOB))
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),intrinsics.bc)
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),libmorestack.a)

endef
Expand Down
11 changes: 0 additions & 11 deletions mk/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ USE_SNAPSHOT_CORELIB=0

define TARGET_STAGE_N

$$(TLIB$(1)_T_$(2)_H_$(3))/intrinsics.ll: \
$$(S)src/rt/intrinsics/intrinsics.$(HOST_$(2)).ll.in
@$$(call E, sed: $$@)
$$(Q)sed s/@CFG_TARGET_TRIPLE@/$(2)/ $$< > $$@

$$(TLIB$(1)_T_$(2)_H_$(3))/intrinsics.bc: \
$$(TLIB$(1)_T_$(2)_H_$(3))/intrinsics.ll \
$$(LLVM_CONFIG_$(2))
@$$(call E, llvms-as: $$@)
$$(Q)$$(LLVM_AS_$(2)) -o $$@ $$<

$$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a: \
rt/$(2)/arch/$$(HOST_$(2))/libmorestack.a
@$$(call E, cp: $$@)
Expand Down
27 changes: 0 additions & 27 deletions src/etc/gen-intrinsics

This file was deleted.

2 changes: 1 addition & 1 deletion src/libcore/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ native mod rustrt {
yield: *libc::uintptr_t);
}

#[abi = "rust-builtin"]
#[abi = "rust-intrinsic"]
native mod rusti {
fn init<T>() -> T;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ native mod libc_ {
fn memmove(dest: *c_void, src: *c_void, n: libc::size_t) -> *c_void;
}

#[abi = "rust-builtin"]
#[abi = "rust-intrinsic"]
native mod rusti {
fn addr_of<T>(val: T) -> *T;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ native mod rustrt {
fn rust_set_exit_status(code: libc::intptr_t);
}

#[abi = "rust-builtin"]
#[abi = "rust-intrinsic"]
native mod rusti {
fn get_tydesc<T>() -> *();
fn size_of<T>() -> uint;
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/unsafe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export reinterpret_cast, forget;

#[abi = "rust-builtin"]
#[abi = "rust-intrinsic"]
native mod rusti {
fn forget<T>(-x: T);
fn reinterpret_cast<T, U>(e: T) -> U;
Expand Down
174 changes: 0 additions & 174 deletions src/rt/intrinsics/intrinsics.cpp

This file was deleted.

Loading

0 comments on commit 1b81c51

Please sign in to comment.