Lines Matching refs:OutputPath
933 SmallString<128> OutputPath(SavedObjectsDirectoryPath); in writeGeneratedObject() local
934 llvm::sys::path::append(OutputPath, in writeGeneratedObject()
936 OutputPath.c_str(); // Ensure the string is null terminated. in writeGeneratedObject()
937 if (sys::fs::exists(OutputPath)) in writeGeneratedObject()
938 sys::fs::remove(OutputPath); in writeGeneratedObject()
943 auto Err = sys::fs::create_hard_link(CacheEntryPath, OutputPath); in writeGeneratedObject()
945 return std::string(OutputPath.str()); in writeGeneratedObject()
947 Err = sys::fs::copy_file(CacheEntryPath, OutputPath); in writeGeneratedObject()
949 return std::string(OutputPath.str()); in writeGeneratedObject()
954 << "' to '" << OutputPath << "'\n"; in writeGeneratedObject()
958 raw_fd_ostream OS(OutputPath, Err, sys::fs::OF_None); in writeGeneratedObject()
960 report_fatal_error(Twine("Can't open output '") + OutputPath + "'\n"); in writeGeneratedObject()
962 return std::string(OutputPath.str()); in writeGeneratedObject()