rustc_codegen_llvm: remove more unused functions.
This commit is contained in:
parent
f224441ed5
commit
ebec156abf
4 changed files with 21 additions and 401 deletions
|
@ -828,23 +828,6 @@ LLVMRustPGOAvailable() {
|
|||
// and various online resources about ThinLTO to make heads or tails of all
|
||||
// this.
|
||||
|
||||
extern "C" bool
|
||||
LLVMRustWriteThinBitcodeToFile(LLVMPassManagerRef PMR,
|
||||
LLVMModuleRef M,
|
||||
const char *BcFile) {
|
||||
llvm::legacy::PassManager *PM = unwrap<llvm::legacy::PassManager>(PMR);
|
||||
std::error_code EC;
|
||||
llvm::raw_fd_ostream bc(BcFile, EC, llvm::sys::fs::F_None);
|
||||
if (EC) {
|
||||
LLVMRustSetLastError(EC.message().c_str());
|
||||
return false;
|
||||
}
|
||||
PM->add(createWriteThinLTOBitcodePass(bc));
|
||||
PM->run(*unwrap(M));
|
||||
delete PM;
|
||||
return true;
|
||||
}
|
||||
|
||||
// This is a shared data structure which *must* be threadsafe to share
|
||||
// read-only amongst threads. This also corresponds basically to the arguments
|
||||
// of the `ProcessThinLTOModule` function in the LLVM source.
|
||||
|
@ -1259,13 +1242,6 @@ LLVMRustThinLTOPatchDICompileUnit(LLVMModuleRef Mod, DICompileUnit *Unit) {
|
|||
|
||||
#else
|
||||
|
||||
extern "C" bool
|
||||
LLVMRustWriteThinBitcodeToFile(LLVMPassManagerRef PMR,
|
||||
LLVMModuleRef M,
|
||||
const char *BcFile) {
|
||||
report_fatal_error("ThinLTO not available");
|
||||
}
|
||||
|
||||
struct LLVMRustThinLTOData {
|
||||
};
|
||||
|
||||
|
|
|
@ -750,15 +750,6 @@ LLVMRustDIBuilderCreateArrayType(LLVMRustDIBuilderRef Builder, uint64_t Size,
|
|||
DINodeArray(unwrapDI<MDTuple>(Subscripts))));
|
||||
}
|
||||
|
||||
extern "C" LLVMMetadataRef
|
||||
LLVMRustDIBuilderCreateVectorType(LLVMRustDIBuilderRef Builder, uint64_t Size,
|
||||
uint32_t AlignInBits, LLVMMetadataRef Ty,
|
||||
LLVMMetadataRef Subscripts) {
|
||||
return wrap(
|
||||
Builder->createVectorType(Size, AlignInBits, unwrapDI<DIType>(Ty),
|
||||
DINodeArray(unwrapDI<MDTuple>(Subscripts))));
|
||||
}
|
||||
|
||||
extern "C" LLVMMetadataRef
|
||||
LLVMRustDIBuilderGetOrCreateSubrange(LLVMRustDIBuilderRef Builder, int64_t Lo,
|
||||
int64_t Count) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue