Skip to content

Commit 81df89f

Browse files
arielb1Ariel Ben-Yehuda
authored and
Ariel Ben-Yehuda
committed
remove the ExecutionEngine binding
the code has no tests and will just bitrot by itself. this is a [breaking-change]
1 parent 32e462e commit 81df89f

File tree

4 files changed

+2
-123
lines changed

4 files changed

+2
-123
lines changed

mk/rustllvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LLVM_EXTRA_INCDIRS_$(1)= $$(call CFG_CC_INCLUDE_$(1),$(S)src/llvm/include) \
2424
endif
2525

2626
RUSTLLVM_OBJS_CS_$(1) := $$(addprefix rustllvm/, \
27-
ExecutionEngineWrapper.cpp RustWrapper.cpp PassWrapper.cpp \
27+
RustWrapper.cpp PassWrapper.cpp \
2828
ArchiveWrapper.cpp)
2929

3030
RUSTLLVM_INCS_$(1) = $$(LLVM_EXTRA_INCDIRS_$(1)) \

src/librustc_llvm/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ fn main() {
112112
cfg.flag(&flag);
113113
}
114114

115-
cfg.file("../rustllvm/ExecutionEngineWrapper.cpp")
116-
.file("../rustllvm/PassWrapper.cpp")
115+
cfg.file("../rustllvm/PassWrapper.cpp")
117116
.file("../rustllvm/RustWrapper.cpp")
118117
.file("../rustllvm/ArchiveWrapper.cpp")
119118
.cpp(true)

src/librustc_llvm/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,15 +1099,6 @@ extern {
10991099
Name: *const c_char);
11001100
pub fn LLVMDisposeBuilder(Builder: BuilderRef);
11011101

1102-
/* Execution engine */
1103-
pub fn LLVMBuildExecutionEngine(Mod: ModuleRef) -> ExecutionEngineRef;
1104-
pub fn LLVMDisposeExecutionEngine(EE: ExecutionEngineRef);
1105-
pub fn LLVMExecutionEngineFinalizeObject(EE: ExecutionEngineRef);
1106-
pub fn LLVMRustLoadDynamicLibrary(path: *const c_char) -> Bool;
1107-
pub fn LLVMExecutionEngineAddModule(EE: ExecutionEngineRef, M: ModuleRef);
1108-
pub fn LLVMExecutionEngineRemoveModule(EE: ExecutionEngineRef, M: ModuleRef)
1109-
-> Bool;
1110-
11111102
/* Metadata */
11121103
pub fn LLVMSetCurrentDebugLocation(Builder: BuilderRef, L: ValueRef);
11131104
pub fn LLVMGetCurrentDebugLocation(Builder: BuilderRef) -> ValueRef;

src/rustllvm/ExecutionEngineWrapper.cpp

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)