Lines Matching refs:OutputPath
893 SmallString<128> OutputPath(SavedObjectsDirectoryPath); in writeGeneratedObject() local
894 llvm::sys::path::append(OutputPath, in writeGeneratedObject()
896 OutputPath.c_str(); // Ensure the string is null terminated. in writeGeneratedObject()
897 if (sys::fs::exists(OutputPath)) in writeGeneratedObject()
898 sys::fs::remove(OutputPath); in writeGeneratedObject()
903 auto Err = sys::fs::create_hard_link(CacheEntryPath, OutputPath); in writeGeneratedObject()
905 return std::string(OutputPath.str()); in writeGeneratedObject()
907 Err = sys::fs::copy_file(CacheEntryPath, OutputPath); in writeGeneratedObject()
909 return std::string(OutputPath.str()); in writeGeneratedObject()
914 << "' to '" << OutputPath << "'\n"; in writeGeneratedObject()
918 raw_fd_ostream OS(OutputPath, Err, sys::fs::OF_None); in writeGeneratedObject()
920 report_fatal_error("Can't open output '" + OutputPath + "'\n"); in writeGeneratedObject()
922 return std::string(OutputPath.str()); in writeGeneratedObject()