Home
last modified time | relevance | path

Searched refs:Filename (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/external/llvm/lib/Support/
DToolOutputFile.cpp19 tool_output_file::CleanupInstaller::CleanupInstaller(StringRef Filename) in CleanupInstaller() argument
20 : Filename(Filename), Keep(false) { in CleanupInstaller()
22 if (Filename != "-") in CleanupInstaller()
23 sys::RemoveFileOnSignal(Filename); in CleanupInstaller()
28 if (!Keep && Filename != "-") in ~CleanupInstaller()
29 sys::fs::remove(Filename); in ~CleanupInstaller()
33 if (Filename != "-") in ~CleanupInstaller()
34 sys::DontRemoveFileOnSignal(Filename); in ~CleanupInstaller()
37 tool_output_file::tool_output_file(StringRef Filename, std::error_code &EC, in tool_output_file() argument
39 : Installer(Filename), OS(Filename, EC, Flags) { in tool_output_file()
[all …]
DGraphWriter.cpp69 SmallString<128> Filename; in createGraphFilename() local
70 std::error_code EC = sys::fs::createTemporaryFile(Name, "dot", FD, Filename); in createGraphFilename()
76 errs() << "Writing '" << Filename << "'... "; in createGraphFilename()
77 return Filename.str(); in createGraphFilename()
82 StringRef Filename, bool wait, in ExecGraphViewer() argument
91 sys::fs::remove(Filename); in ExecGraphViewer()
95 errs() << "Remember to erase graph file: " << Filename << "\n"; in ExecGraphViewer()
137 std::string Filename = FilenameRef; in DisplayGraph() local
149 args.push_back(Filename.c_str()); in DisplayGraph()
152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
[all …]
DMemoryBuffer.cpp105 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize,
169 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument
172 StringRef NameRef = Filename.toStringRef(NameBuf); in getFileOrSTDIN()
176 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN()
256 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument
258 return getFileAux(Filename, FileSize, FileSize, 0, in getFile()
263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
268 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument
271 std::error_code EC = sys::fs::openFileForRead(Filename, FD); in getFileAux()
276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
[all …]
DDataStream.cpp64 std::error_code OpenFile(const std::string &Filename) { in OpenFile() argument
65 if (Filename == "-") { in OpenFile()
71 return sys::fs::openFileForRead(Filename, Fd); in OpenFile()
78 llvm::getDataFileStreamer(const std::string &Filename, std::string *StrError) { in getDataFileStreamer() argument
80 if (std::error_code e = s->OpenFile(Filename)) { in getDataFileStreamer()
81 *StrError = std::string("Could not open ") + Filename + ": " + in getDataFileStreamer()
/external/clang/lib/Frontend/
DDependencyFile.cpp54 StringRef Filename = in FileChanged() local
57 DepCollector.maybeAddDependency(Filename, /*FromModule*/false, in FileChanged()
85 StringRef Filename = Entry.getName(); in moduleMapFileRead() local
86 DepCollector.maybeAddDependency(Filename, /*FromModule*/false, in moduleMapFileRead()
100 void visitModuleFile(StringRef Filename, in visitModuleFile()
102 DepCollector.maybeAddDependency(Filename, /*FromModule*/true, in visitModuleFile()
106 bool visitInputFile(StringRef Filename, bool IsSystem, in visitInputFile()
111 DepCollector.maybeAddDependency(Filename, /*FromModule*/true, IsSystem, in visitInputFile()
118 void DependencyCollector::maybeAddDependency(StringRef Filename, bool FromModule, in maybeAddDependency() argument
121 if (Seen.insert(Filename).second && in maybeAddDependency()
[all …]
/external/llvm/tools/dsymutil/
DBinaryHolder.cpp23 getMachOFatMemoryBuffers(StringRef Filename, MemoryBuffer &Mem, in getMachOFatMemoryBuffers() argument
30 Buffers.emplace_back(ObjData, Filename); in getMachOFatMemoryBuffers()
45 BinaryHolder::GetMemoryBuffersForFile(StringRef Filename, in GetMemoryBuffersForFile() argument
48 outs() << "trying to open '" << Filename << "'\n"; in GetMemoryBuffersForFile()
51 if (auto ErrOrArchiveMembers = GetArchiveMemberBuffers(Filename, Timestamp)) in GetMemoryBuffersForFile()
56 if (Filename.endswith(")")) in GetMemoryBuffersForFile()
58 MapArchiveAndGetMemberBuffers(Filename, Timestamp)) in GetMemoryBuffersForFile()
66 auto ErrOrFile = MemoryBuffer::getFileOrSTDIN(Filename); in GetMemoryBuffersForFile()
83 CurrentFatBinaryName = Filename; in GetMemoryBuffersForFile()
89 BinaryHolder::GetArchiveMemberBuffers(StringRef Filename, in GetArchiveMemberBuffers() argument
[all …]
/external/llvm/tools/llvm-lto/
Dllvm-lto.cpp269 for (auto &Filename : InputFilenames) { in listSymbols() local
272 getLocalLTOModule(Filename, Buffer, Options); in listSymbols()
275 outs() << Filename << ":\n"; in listSymbols()
288 for (auto &Filename : InputFilenames) { in createCombinedModuleSummaryIndex() local
289 CurrentActivity = "loading file '" + Filename + "'"; in createCombinedModuleSummaryIndex()
291 llvm::getModuleSummaryIndexForFile(Filename, diagnosticHandler); in createCombinedModuleSummaryIndex()
347 const auto &Filename = ModPath.first(); in loadAllFilesForIndex() local
348 auto CurrentActivity = "loading file '" + Filename + "'"; in loadAllFilesForIndex()
349 auto InputOrErr = MemoryBuffer::getFile(Filename); in loadAllFilesForIndex()
366 static std::unique_ptr<Module> loadModule(StringRef Filename, in loadModule() argument
[all …]
/external/curl/tests/data/
Dtest111440 Filename: .
46 Filename: ..
52 Filename: chmod1
62 Filename: chmod2
72 Filename: chmod3
82 Filename: chmod4
88 Filename: chmod5
94 Filename: empty_file.dat
103 Filename: file.txt
113 Filename: .NeXT
[all …]
Dtest57640 Filename: .
49 Filename: ..
58 Filename: chmod1
71 Filename: chmod2
84 Filename: chmod3
97 Filename: chmod4
106 Filename: chmod5
115 Filename: empty_file.dat
127 Filename: file.txt
140 Filename: link
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DGCOV.cpp102 Filename = Buff.readString(); in read()
143 StringRef Filename = Buff.readString(); in read() local
146 Block->addLine(Filename, L); in read()
155 outs() << "===== " << Name << " @ " << Filename << ":" << LineNumber << "\n"; in dump()
178 void GCOVBlock::addLine(StringRef Filename, uint32_t LineNo) { in addLine() argument
179 GCOVLines *&LinesForFile = Lines[Filename]; in addLine()
219 void GCOVLines::collectLineCounts(FileInfo &FI, StringRef Filename, in collectLineCounts() argument
223 FI.addLineCount(Filename, *I, Count); in collectLineCounts()
237 void FileInfo::addLineCount(StringRef Filename, uint32_t Line, uint32_t Count) { in addLineCount() argument
238 if (LineInfo.find(Filename) == LineInfo.end()) { in addLineCount()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DToolOutputFile.cpp19 : Filename(filename), Keep(false) { in CleanupInstaller()
21 if (Filename != "-") in CleanupInstaller()
22 sys::RemoveFileOnSignal(sys::Path(Filename)); in CleanupInstaller()
27 if (!Keep && Filename != "-") in ~CleanupInstaller()
28 sys::Path(Filename).eraseFromDisk(); in ~CleanupInstaller()
32 if (Filename != "-") in ~CleanupInstaller()
33 sys::DontRemoveFileOnSignal(sys::Path(Filename)); in ~CleanupInstaller()
DMemoryBuffer.cpp158 error_code MemoryBuffer::getFileOrSTDIN(StringRef Filename, in getFileOrSTDIN() argument
161 if (Filename == "-") in getFileOrSTDIN()
163 return getFile(Filename, result, FileSize); in getFileOrSTDIN()
166 error_code MemoryBuffer::getFileOrSTDIN(const char *Filename, in getFileOrSTDIN() argument
169 if (strcmp(Filename, "-") == 0) in getFileOrSTDIN()
171 return getFile(Filename, result, FileSize); in getFileOrSTDIN()
205 error_code MemoryBuffer::getFile(StringRef Filename, in getFile() argument
210 SmallString<256> PathBuf(Filename.begin(), Filename.end()); in getFile()
215 error_code MemoryBuffer::getFile(const char *Filename, in getFile() argument
223 int FD = ::open(Filename, OpenFlags); in getFile()
[all …]
DGraphWriter.cpp54 void llvm::DisplayGraph(const sys::Path &Filename, bool wait, in DisplayGraph() argument
62 args.push_back(Filename.c_str()); in DisplayGraph()
70 Filename.eraseFromDisk(); in DisplayGraph()
76 args.push_back(Filename.c_str()); in DisplayGraph()
95 Filename.eraseFromDisk(); in DisplayGraph()
100 sys::Path PSFilename = Filename; in DisplayGraph()
149 args.push_back(Filename.c_str()); in DisplayGraph()
173 Filename.eraseFromDisk(); in DisplayGraph()
178 errs() << "Remember to erase graph files: " << Filename.str() << " " in DisplayGraph()
186 args.push_back(Filename.c_str()); in DisplayGraph()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp105 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize,
169 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument
172 StringRef NameRef = Filename.toStringRef(NameBuf); in getFileOrSTDIN()
176 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN()
256 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument
258 return getFileAux(Filename, FileSize, FileSize, 0, in getFile()
263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
268 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument
271 std::error_code EC = sys::fs::openFileForRead(Filename, FD); in getFileAux()
276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
[all …]
/external/compiler-rt/lib/profile/
DInstrProfilingFile.c220 const char *Filename; in truncateCurrentFile() local
227 Filename = getCurFilename(FilenameBuf); in truncateCurrentFile()
228 if (!Filename) in truncateCurrentFile()
232 if (strchr(Filename, '/') || strchr(Filename, '\\')) { in truncateCurrentFile()
234 strncpy(Copy, Filename, Length + 1); in truncateCurrentFile()
239 File = fopen(Filename, "w"); in truncateCurrentFile()
422 const char *Filename = getenv("LLVM_PROFILE_FILE"); in getFilenamePatFromEnv() local
423 if (!Filename || !Filename[0]) in getFilenamePatFromEnv()
425 return Filename; in getFilenamePatFromEnv()
467 const char *Filename; in __llvm_profile_write_file() local
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFileUtilities.h41 SmallString<128> Filename; variable
48 filename.toVector(Filename); in DeleteIt()
54 sys::fs::remove(Filename); in ~FileRemover()
64 sys::fs::remove(Filename);
67 Filename.clear();
68 filename.toVector(Filename);
/external/llvm/include/llvm/Support/
DFileUtilities.h41 SmallString<128> Filename; variable
48 filename.toVector(Filename); in DeleteIt()
54 sys::fs::remove(Filename); in ~FileRemover()
64 sys::fs::remove(Filename);
67 Filename.clear();
68 filename.toVector(Filename);
/external/llvm/tools/llvm-dwarfdump/
Dllvm-dwarfdump.cpp76 static void error(StringRef Filename, std::error_code EC) { in error() argument
79 errs() << Filename << ": " << EC.message() << "\n"; in error()
83 static void DumpObjectFile(ObjectFile &Obj, Twine Filename) { in DumpObjectFile() argument
86 outs() << Filename.str() << ":\tfile format " << Obj.getFileFormatName() in DumpObjectFile()
92 static void DumpInput(StringRef Filename) { in DumpInput() argument
94 MemoryBuffer::getFileOrSTDIN(Filename); in DumpInput()
95 error(Filename, BuffOrErr.getError()); in DumpInput()
101 error(Filename, errorToErrorCode(BinOrErr.takeError())); in DumpInput()
104 DumpObjectFile(*Obj, Filename); in DumpInput()
108 error(Filename, errorToErrorCode(MachOOrErr.takeError())); in DumpInput()
[all …]
/external/clang/lib/Lex/
DHeaderSearch.cpp274 StringRef &Filename, in LookupFile() argument
291 llvm::sys::path::append(TmpDir, Filename); in LookupFile()
299 RelativePath->append(Filename.begin(), Filename.end()); in LookupFile()
308 return DoFrameworkLookup(Filename, HS, SearchPath, RelativePath, in LookupFile()
315 StringRef Dest = HM->lookupFilename(Filename, Path); in LookupFile()
327 Filename = StringRef(MappedName.begin(), MappedName.size()); in LookupFile()
329 Result = HM->LookupFile(Filename, HS.getFileMgr()); in LookupFile()
343 RelativePath->append(Filename.begin(), Filename.end()); in LookupFile()
402 StringRef Filename, HeaderSearch &HS, SmallVectorImpl<char> *SearchPath, in DoFrameworkLookup() argument
409 size_t SlashPos = Filename.find('/'); in DoFrameworkLookup()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DFileUtilities.h41 SmallString<128> Filename; variable
48 filename.toVector(Filename); in DeleteIt()
55 sys::fs::remove(Filename.str(), existed); in ~FileRemover()
66 sys::fs::remove(Filename.str(), existed);
69 Filename.clear();
70 filename.toVector(Filename);
/external/clang/lib/Driver/
DInputInfo.h32 Filename, enumerator
38 const char *Filename; member
56 : Kind(Filename), Act(nullptr), Type(_Type), BaseInput(_BaseInput) { in InputInfo()
57 Data.Filename = _Filename; in InputInfo()
60 : Kind(Filename), Act(A), Type(GetActionType(A)), BaseInput(_BaseInput) { in InputInfo()
61 Data.Filename = _Filename; in InputInfo()
76 bool isFilename() const { return Kind == Filename; } in isFilename()
86 return Data.Filename; in getFilename()
/external/compiler-rt/lib/ubsan/
Dubsan_value.h46 const char *Filename; variable
51 SourceLocation() : Filename(), Line(), Column() {} in SourceLocation()
52 SourceLocation(const char *Filename, unsigned Line, unsigned Column) in SourceLocation() argument
53 : Filename(Filename), Line(Line), Column(Column) {} in SourceLocation()
56 bool isInvalid() const { return !Filename; } in isInvalid()
64 return SourceLocation(Filename, Line, OldColumn); in acquire()
74 const char *getFilename() const { return Filename; } in getFilename()
/external/clang/lib/Basic/
DFileManager.cpp105 StringRef Filename, in getDirectoryFromFile() argument
107 if (Filename.empty()) in getDirectoryFromFile()
110 if (llvm::sys::path::is_separator(Filename[Filename.size() - 1])) in getDirectoryFromFile()
113 StringRef DirName = llvm::sys::path::parent_path(Filename); in getDirectoryFromFile()
212 const FileEntry *FileManager::getFile(StringRef Filename, bool openFile, in getFile() argument
218 *SeenFileEntries.insert(std::make_pair(Filename, nullptr)).first; in getFile()
239 const DirectoryEntry *DirInfo = getDirectoryFromFile(*this, Filename, in getFile()
243 SeenFileEntries.erase(Filename); in getFile()
257 SeenFileEntries.erase(Filename); in getFile()
272 if (Data.Name != Filename) { in getFile()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/
DDataStream.cpp64 std::error_code OpenFile(const std::string &Filename) { in OpenFile() argument
65 if (Filename == "-") { in OpenFile()
71 return sys::fs::openFileForRead(Filename, Fd); in OpenFile()
78 llvm::getDataFileStreamer(const std::string &Filename, std::string *StrError) { in getDataFileStreamer() argument
80 if (std::error_code e = s->OpenFile(Filename)) { in getDataFileStreamer()
81 *StrError = std::string("Could not open ") + Filename + ": " + in getDataFileStreamer()
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp111 StringRef Filename; member
116 WeightedFile(StringRef F, uint64_t W) : Filename{F}, Weight{W} {} in WeightedFile()
137 auto ReaderOrErr = InstrProfReader::create(Input.Filename); in mergeInstrProfile()
139 exitWithError(std::move(E), Input.Filename); in mergeInstrProfile()
151 handleMergeWriterError(make_error<InstrProfError>(IPE), Input.Filename, in mergeInstrProfile()
156 exitWithError(Reader->getError(), Input.Filename); in mergeInstrProfile()
182 auto ReaderOrErr = SampleProfileReader::create(Input.Filename, Context); in mergeSampleProfile()
184 exitWithErrorCode(EC, Input.Filename); in mergeSampleProfile()
193 exitWithErrorCode(EC, Input.Filename); in mergeSampleProfile()
204 handleMergeWriterError(errorCodeToError(EC), Input.Filename, FName); in mergeSampleProfile()
[all …]

12345678910>>...15