Skip to content

Commit a1099ae

Browse files
committed
Remove the unused LLVMRustIsRustLLVM
1 parent eed3619 commit a1099ae

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/librustc_codegen_llvm/llvm/ffi.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,6 @@ extern "C" {
13821382
pub fn LLVMRustDebugMetadataVersion() -> u32;
13831383
pub fn LLVMRustVersionMajor() -> u32;
13841384
pub fn LLVMRustVersionMinor() -> u32;
1385-
pub fn LLVMRustIsRustLLVM() -> bool;
13861385

13871386
pub fn LLVMRustAddModuleFlag(M: &Module, name: *const c_char, value: u32);
13881387

src/rustllvm/RustWrapper.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -613,14 +613,6 @@ extern "C" uint32_t LLVMRustVersionMinor() { return LLVM_VERSION_MINOR; }
613613

614614
extern "C" uint32_t LLVMRustVersionMajor() { return LLVM_VERSION_MAJOR; }
615615

616-
extern "C" bool LLVMRustIsRustLLVM() {
617-
#ifdef LLVM_RUSTLLVM
618-
return 1;
619-
#else
620-
return 0;
621-
#endif
622-
}
623-
624616
extern "C" void LLVMRustAddModuleFlag(LLVMModuleRef M, const char *Name,
625617
uint32_t Value) {
626618
unwrap(M)->addModuleFlag(Module::Warning, Name, Value);

0 commit comments

Comments
 (0)