• Home
  • Raw
  • Download

Lines Matching refs:Strings

101   llvm::StringRef consumeString(llvm::ArrayRef<llvm::StringRef> Strings) {  in consumeString()  argument
103 if (LLVM_UNLIKELY(StringIndex >= Strings.size())) { in consumeString()
107 return Strings[StringIndex]; in consumeString()
212 std::vector<llvm::StringRef> Strings; member
249 Table.Strings.push_back(Saver.save(R.consume(Len))); in readStringTable()
263 void writeLocation(const SymbolLocation &Loc, const StringTableOut &Strings, in writeLocation() argument
265 writeVar(Strings.index(Loc.FileURI), OS); in writeLocation()
273 llvm::ArrayRef<llvm::StringRef> Strings) { in readLocation() argument
275 Loc.FileURI = Data.consumeString(Strings).data(); in readLocation()
284 llvm::ArrayRef<llvm::StringRef> Strings) { in readIncludeGraphNode() argument
287 IGN.URI = Data.consumeString(Strings); in readIncludeGraphNode()
293 Include = Data.consumeString(Strings); in readIncludeGraphNode()
298 const StringTableOut &Strings, in writeIncludeGraphNode() argument
301 writeVar(Strings.index(IGN.URI), OS); in writeIncludeGraphNode()
307 writeVar(Strings.index(Include), OS); in writeIncludeGraphNode()
310 void writeSymbol(const Symbol &Sym, const StringTableOut &Strings, in writeSymbol() argument
316 writeVar(Strings.index(Sym.Name), OS); in writeSymbol()
317 writeVar(Strings.index(Sym.Scope), OS); in writeSymbol()
318 writeVar(Strings.index(Sym.TemplateSpecializationArgs), OS); in writeSymbol()
319 writeLocation(Sym.Definition, Strings, OS); in writeSymbol()
320 writeLocation(Sym.CanonicalDeclaration, Strings, OS); in writeSymbol()
324 writeVar(Strings.index(Sym.Signature), OS); in writeSymbol()
325 writeVar(Strings.index(Sym.CompletionSnippetSuffix), OS); in writeSymbol()
326 writeVar(Strings.index(Sym.Documentation), OS); in writeSymbol()
327 writeVar(Strings.index(Sym.ReturnType), OS); in writeSymbol()
328 writeVar(Strings.index(Sym.Type), OS); in writeSymbol()
331 writeVar(Strings.index(Include.IncludeHeader), OS); in writeSymbol()
339 Symbol readSymbol(Reader &Data, llvm::ArrayRef<llvm::StringRef> Strings) { in readSymbol() argument
344 Sym.Name = Data.consumeString(Strings); in readSymbol()
345 Sym.Scope = Data.consumeString(Strings); in readSymbol()
346 Sym.TemplateSpecializationArgs = Data.consumeString(Strings); in readSymbol()
347 Sym.Definition = readLocation(Data, Strings); in readSymbol()
348 Sym.CanonicalDeclaration = readLocation(Data, Strings); in readSymbol()
352 Sym.Signature = Data.consumeString(Strings); in readSymbol()
353 Sym.CompletionSnippetSuffix = Data.consumeString(Strings); in readSymbol()
354 Sym.Documentation = Data.consumeString(Strings); in readSymbol()
355 Sym.ReturnType = Data.consumeString(Strings); in readSymbol()
356 Sym.Type = Data.consumeString(Strings); in readSymbol()
360 I.IncludeHeader = Data.consumeString(Strings); in readSymbol()
374 const StringTableOut &Strings, llvm::raw_ostream &OS) { in writeRefs() argument
379 writeLocation(Ref.Location, Strings, OS); in writeRefs()
385 readRefs(Reader &Data, llvm::ArrayRef<llvm::StringRef> Strings) { in readRefs() argument
392 Ref.Location = readLocation(Data, Strings); in readRefs()
424 const StringTableOut &Strings, in writeCompileCommand() argument
426 writeVar(Strings.index(Cmd.Directory), CmdOS); in writeCompileCommand()
429 writeVar(Strings.index(C), CmdOS); in writeCompileCommand()
433 readCompileCommand(Reader CmdReader, llvm::ArrayRef<llvm::StringRef> Strings) { in readCompileCommand() argument
435 Cmd.Directory = CmdReader.consumeString(Strings); in readCompileCommand()
439 C = CmdReader.consumeString(Strings); in readCompileCommand()
480 auto Strings = readStringTable(Chunks.lookup("stri")); in readRIFF() local
481 if (!Strings) in readRIFF()
482 return Strings.takeError(); in readRIFF()
489 auto IGN = readIncludeGraphNode(SrcsReader, Strings->Strings); in readRIFF()
506 Symbols.insert(readSymbol(SymbolReader, Strings->Strings)); in readRIFF()
515 auto RefsBundle = readRefs(RefsReader, Strings->Strings); in readRIFF()
535 readCompileCommand(CmdReader, Strings->Strings); in readRIFF()
566 StringTableOut Strings; in writeRIFF() local
571 [&](llvm::StringRef &S) { Strings.intern(S); }); in writeRIFF()
578 [&](llvm::StringRef &S) { Strings.intern(S); }); in writeRIFF()
587 Strings.intern(File); in writeRIFF()
605 Strings.intern(InternedCmd.Directory); in writeRIFF()
608 Strings.intern(InternedCmd.CommandLine.back()); in writeRIFF()
615 Strings.finalize(StringOS); in writeRIFF()
623 writeSymbol(Sym, Strings, SymbolOS); in writeRIFF()
632 writeRefs(Sym.first, Sym.second, Strings, RefsOS); in writeRIFF()
652 writeIncludeGraphNode(SF, Strings, SrcsOS); in writeRIFF()
661 writeCompileCommand(InternedCmd, Strings, CmdOS); in writeRIFF()