Lines Matching +defs:source +defs:path
355 path = std::string(s);
359 raw_fd_ostream os(path, ec, sys::fs::OF_None);
361 fatal("failed to open " + path + ": " + ec.message());
366 TemporaryFile(TemporaryFile &&obj) noexcept { std::swap(path, obj.path); }
369 if (path.empty())
371 if (sys::fs::remove(path))
372 fatal("failed to remove " + path);
381 return CHECK(MemoryBuffer::getFile(path, /*IsText=*/false,
384 "could not open " + path);
387 std::string path;
448 raw_fd_ostream os(Default.path, ec, sys::fs::OF_TextWithCRLF);
450 fatal("failed to open " + Default.path + ": " + ec.message());
460 e.add(Default.path);
471 e.add("/out:" + StringRef(user.path));
475 CHECK(MemoryBuffer::getFile(user.path), "could not open " + user.path)
552 std::string path = std::string(ctx.config.manifestFile);
553 if (path == "")
554 path = ctx.config.outputFile + ".manifest";
556 raw_fd_ostream out(path, ec, sys::fs::OF_TextWithCRLF);
568 e.source = ExportSource::Export;
660 return "source file (directives)";
738 if (existing->source == ExportSource::Directives) {
743 if (existing->source == e.source) {
744 warn(Twine("duplicate ") + exportSourceName(existing->source) +
748 Twine(" first seen in " + exportSourceName(existing->source) +
749 Twine(", now in " + exportSourceName(e.source))));
775 void LinkerDriver::checkFailIfMismatch(StringRef arg, InputFile *source) {
781 std::string sourceStr = source ? toString(source) : "cmd-line";
788 ctx.config.mustMatch[k] = {v, source};
964 // Handle /EXPORT and /INCLUDE in a fast path. These directives can appear for