@@ -384,12 +384,6 @@ LLVMRustBuildAtomicFence(LLVMBuilderRef B, LLVMAtomicOrdering Order,
384
384
return wrap (unwrap (B)->CreateFence (fromRust (Order), fromRust (Scope)));
385
385
}
386
386
387
- extern " C" void LLVMRustSetDebug (int Enabled) {
388
- #ifndef NDEBUG
389
- DebugFlag = Enabled;
390
- #endif
391
- }
392
-
393
387
enum class LLVMRustAsmDialect {
394
388
Other,
395
389
Att,
@@ -933,23 +927,6 @@ extern "C" bool LLVMRustLinkInExternalBitcode(LLVMModuleRef DstRef, char *BC,
933
927
return true ;
934
928
}
935
929
936
- extern " C" bool LLVMRustLinkInParsedExternalBitcode (
937
- LLVMModuleRef DstRef, LLVMModuleRef SrcRef) {
938
- #if LLVM_VERSION_GE(4, 0)
939
- Module *Dst = unwrap (DstRef);
940
- std::unique_ptr<Module> Src (unwrap (SrcRef));
941
-
942
- if (Linker::linkModules (*Dst, std::move (Src))) {
943
- LLVMRustSetLastError (" failed to link modules" );
944
- return false ;
945
- }
946
- return true ;
947
- #else
948
- LLVMRustSetLastError (" can't link parsed modules on this LLVM" );
949
- return false ;
950
- #endif
951
- }
952
-
953
930
// Note that the two following functions look quite similar to the
954
931
// LLVMGetSectionName function. Sadly, it appears that this function only
955
932
// returns a char* pointer, which isn't guaranteed to be null-terminated. The
@@ -981,7 +958,6 @@ extern "C" LLVMTypeRef LLVMRustArrayType(LLVMTypeRef ElementTy,
981
958
}
982
959
983
960
DEFINE_SIMPLE_CONVERSION_FUNCTIONS (Twine, LLVMTwineRef)
984
- DEFINE_SIMPLE_CONVERSION_FUNCTIONS (DebugLoc, LLVMDebugLocRef)
985
961
986
962
extern " C" void LLVMRustWriteTwineToString (LLVMTwineRef T, RustStringRef Str) {
987
963
RawRustStringOstream OS (Str);
@@ -1130,13 +1106,6 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
1130
1106
report_fatal_error (" Unhandled TypeID." );
1131
1107
}
1132
1108
1133
- extern " C" void LLVMRustWriteDebugLocToString (LLVMContextRef C,
1134
- LLVMDebugLocRef DL,
1135
- RustStringRef Str) {
1136
- RawRustStringOstream OS (Str);
1137
- unwrap (DL)->print (OS);
1138
- }
1139
-
1140
1109
DEFINE_SIMPLE_CONVERSION_FUNCTIONS (SMDiagnostic, LLVMSMDiagnosticRef)
1141
1110
1142
1111
extern " C" void LLVMRustSetInlineAsmDiagnosticHandler (
0 commit comments