@@ -418,29 +418,6 @@ GetPlatformAuxiliaryFile(StringRef Platform, StringRef File,
418418 return " " ;
419419}
420420
421- SmallVector<std::pair<std::string, std::string>, 2 >
422- GetAndroidFileMappings (
423- ASTContext &Context, const std::string &sysroot,
424- const llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS) {
425- const llvm::Triple &Triple = Context.LangOpts .Target ;
426- const SearchPathOptions &SearchPathOpts = Context.SearchPathOpts ;
427- SmallVector<std::pair<std::string, std::string>, 2 > Mappings;
428- std::string AuxiliaryFile;
429-
430- if (!Triple.isAndroid ()) return Mappings;
431-
432- llvm::SmallString<261 > NDKInjection{sysroot};
433- llvm::sys::path::append (NDKInjection, " posix_filesystem.apinotes" );
434-
435- AuxiliaryFile =
436- GetPlatformAuxiliaryFile (" android" , " posix_filesystem.apinotes" ,
437- SearchPathOpts);
438- if (!AuxiliaryFile.empty ())
439- Mappings.emplace_back (std::string (NDKInjection), AuxiliaryFile);
440-
441- return Mappings;
442- }
443-
444421SmallVector<std::pair<std::string, std::string>, 2 > GetWindowsFileMappings (
445422 ASTContext &Context,
446423 const llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> &driverVFS,
@@ -612,9 +589,5 @@ ClangInvocationFileMapping swift::getClangInvocationFileMapping(
612589
613590 result.redirectedFiles .append (GetWindowsFileMappings (
614591 ctx, vfs, result.requiresBuiltinHeadersInSystemModules ));
615-
616- result.redirectedFiles .append (GetAndroidFileMappings (ctx, sysroot.str ().str (),
617- vfs));
618-
619592 return result;
620593}
0 commit comments