Lines Matching defs:OutputPath
934 SmallString<128> OutputPath(SavedObjectsDirectoryPath);
935 llvm::sys::path::append(OutputPath,
937 OutputPath.c_str(); // Ensure the string is null terminated.
938 if (sys::fs::exists(OutputPath))
939 sys::fs::remove(OutputPath);
944 auto Err = sys::fs::create_hard_link(CacheEntryPath, OutputPath);
946 return std::string(OutputPath);
948 Err = sys::fs::copy_file(CacheEntryPath, OutputPath);
950 return std::string(OutputPath);
955 << "' to '" << OutputPath << "'\n";
959 raw_fd_ostream OS(OutputPath, Err, sys::fs::OF_None);
961 report_fatal_error(Twine("Can't open output '") + OutputPath + "'\n");
963 return std::string(OutputPath);