@@ -384,12 +384,6 @@ LLVMRustBuildAtomicFence(LLVMBuilderRef B, LLVMAtomicOrdering Order,
384384 return wrap (unwrap (B)->CreateFence (fromRust (Order), fromRust (Scope)));
385385}
386386
387- extern " C" void LLVMRustSetDebug (int Enabled) {
388- #ifndef NDEBUG
389- DebugFlag = Enabled;
390- #endif
391- }
392-
393387enum class LLVMRustAsmDialect {
394388 Other,
395389 Att,
@@ -933,23 +927,6 @@ extern "C" bool LLVMRustLinkInExternalBitcode(LLVMModuleRef DstRef, char *BC,
933927 return true ;
934928}
935929
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-
953930// Note that the two following functions look quite similar to the
954931// LLVMGetSectionName function. Sadly, it appears that this function only
955932// returns a char* pointer, which isn't guaranteed to be null-terminated. The
@@ -981,7 +958,6 @@ extern "C" LLVMTypeRef LLVMRustArrayType(LLVMTypeRef ElementTy,
981958}
982959
983960DEFINE_SIMPLE_CONVERSION_FUNCTIONS (Twine, LLVMTwineRef)
984- DEFINE_SIMPLE_CONVERSION_FUNCTIONS (DebugLoc, LLVMDebugLocRef)
985961
986962extern " C" void LLVMRustWriteTwineToString (LLVMTwineRef T, RustStringRef Str) {
987963 RawRustStringOstream OS (Str);
@@ -1130,13 +1106,6 @@ extern "C" LLVMTypeKind LLVMRustGetTypeKind(LLVMTypeRef Ty) {
11301106 report_fatal_error (" Unhandled TypeID." );
11311107}
11321108
1133- extern " C" void LLVMRustWriteDebugLocToString (LLVMContextRef C,
1134- LLVMDebugLocRef DL,
1135- RustStringRef Str) {
1136- RawRustStringOstream OS (Str);
1137- unwrap (DL)->print (OS);
1138- }
1139-
11401109DEFINE_SIMPLE_CONVERSION_FUNCTIONS (SMDiagnostic, LLVMSMDiagnosticRef)
11411110
11421111extern " C" void LLVMRustSetInlineAsmDiagnosticHandler (
0 commit comments