Home
last modified time | relevance | path

Searched refs:Obj (Results 1 – 25 of 263) sorted by relevance

1234567891011

/netbsd-src/external/apache2/llvm/dist/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp28 Expected<bool> Reader::read(Object &Obj) { in read() argument
36 Obj.Kind = Type::Nil; in read()
39 Obj.Kind = Type::Boolean; in read()
40 Obj.Bool = true; in read()
43 Obj.Kind = Type::Boolean; in read()
44 Obj.Bool = false; in read()
47 Obj.Kind = Type::Int; in read()
48 return readInt<int8_t>(Obj); in read()
50 Obj.Kind = Type::Int; in read()
51 return readInt<int16_t>(Obj); in read()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/COFF/
H A DWriter.cpp28 for (Section &Sec : Obj.getMutableSections()) { in finalizeRelocTargets()
30 const Symbol *Sym = Obj.findSymbol(R.Target); in finalizeRelocTargets()
42 for (Symbol &Sym : Obj.getMutableSymbols()) { in finalizeSymbolContents()
48 const Section *Sec = Obj.findSection(Sym.TargetSectionId); in finalizeSymbolContents()
66 Sec = Obj.findSection(Sym.AssociativeComdatTargetSectionId); in finalizeSymbolContents()
84 const Symbol *Target = Obj.findSymbol(*Sym.WeakTargetSymbolId); in finalizeSymbolContents()
96 for (auto &S : Obj.getMutableSections()) { in layoutSections()
120 for (const auto &S : Obj.getSections()) in finalizeStringTable()
124 for (const auto &S : Obj.getSymbols()) in finalizeStringTable()
130 for (auto &S : Obj.getMutableSections()) { in finalizeStringTable()
[all …]
H A DReader.cpp26 Error COFFReader::readExecutableHeaders(Object &Obj) const { in readExecutableHeaders()
28 Obj.Is64 = COFFObj.is64(); in readExecutableHeaders()
32 Obj.IsPE = true; in readExecutableHeaders()
33 Obj.DosHeader = *DH; in readExecutableHeaders()
35 Obj.DosStub = ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(&DH[1]), in readExecutableHeaders()
39 Obj.PeHeader = *COFFObj.getPE32PlusHeader(); in readExecutableHeaders()
42 copyPeHeader(Obj.PeHeader, *PE32); in readExecutableHeaders()
44 Obj.BaseOfData = PE32->BaseOfData; in readExecutableHeaders()
47 for (size_t I = 0; I < Obj.PeHeader.NumberOfRvaAndSize; I++) { in readExecutableHeaders()
51 Obj.DataDirectories.emplace_back(*Dir); in readExecutableHeaders()
[all …]
H A DCOFFObjcopy.cpp34 static uint64_t getNextRVA(const Object &Obj) { in getNextRVA() argument
35 if (Obj.getSections().empty()) in getNextRVA()
37 const Section &Last = Obj.getSections().back(); in getNextRVA()
39 Obj.IsPE ? Obj.PeHeader.SectionAlignment : 1); in getNextRVA()
60 static void addSection(Object &Obj, StringRef Name, ArrayRef<uint8_t> Contents, in addSection() argument
69 Sec.Header.VirtualAddress = NeedVA ? getNextRVA(Obj) : 0u; in addSection()
72 Obj.IsPE ? Obj.PeHeader.FileAlignment : 1) in addSection()
81 Obj.addSections(Sec); in addSection()
84 static Error addGnuDebugLink(Object &Obj, StringRef DebugLinkFile) { in addGnuDebugLink() argument
90 addSection(Obj, ".gnu_debuglink", *Contents, in addGnuDebugLink()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/
H A DPdbYaml.cpp104 void MappingTraits<PdbObject>::mapping(IO &IO, PdbObject &Obj) { in mapping() argument
105 IO.mapOptional("MSF", Obj.Headers); in mapping()
106 IO.mapOptional("StreamSizes", Obj.StreamSizes); in mapping()
107 IO.mapOptional("StreamMap", Obj.StreamMap); in mapping()
108 IO.mapOptional("StringTable", Obj.StringTable); in mapping()
109 IO.mapOptional("PdbStream", Obj.PdbStream); in mapping()
110 IO.mapOptional("DbiStream", Obj.DbiStream); in mapping()
111 IO.mapOptional("TpiStream", Obj.TpiStream); in mapping()
112 IO.mapOptional("IpiStream", Obj.IpiStream); in mapping()
113 IO.mapOptional("PublicsStream", Obj.PublicsStream); in mapping()
[all …]
H A DYAMLOutputStyle.cpp41 : File(File), Out(outs()), Obj(File.getAllocator()) { in YAMLOutputStyle()
86 Obj.Headers.emplace(); in dumpFileHeaders()
87 Obj.Headers->SuperBlock.NumBlocks = File.getBlockCount(); in dumpFileHeaders()
88 Obj.Headers->SuperBlock.BlockMapAddr = File.getBlockMapIndex(); in dumpFileHeaders()
89 Obj.Headers->SuperBlock.BlockSize = File.getBlockSize(); in dumpFileHeaders()
91 Obj.Headers->DirectoryBlocks.assign(Blocks.begin(), Blocks.end()); in dumpFileHeaders()
92 Obj.Headers->NumDirectoryBlocks = File.getNumDirectoryBlocks(); in dumpFileHeaders()
93 Obj.Headers->SuperBlock.NumDirectoryBytes = File.getNumDirectoryBytes(); in dumpFileHeaders()
94 Obj.Headers->NumStreams = in dumpFileHeaders()
96 Obj.Headers->SuperBlock.FreeBlockMapBlock = File.getFreeBlockMapBlock(); in dumpFileHeaders()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ELF/
H A DELFObjcopy.cpp65 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred() argument
67 if (&Sec == Obj.SectionNames) in onlyKeepDWOPred()
137 Object &Obj, raw_ostream &Out, in createELFWriter() argument
142 return std::make_unique<ELFWriter<ELF32LE>>(Obj, Out, !Config.StripSections, in createELFWriter()
145 return std::make_unique<ELFWriter<ELF64LE>>(Obj, Out, !Config.StripSections, in createELFWriter()
148 return std::make_unique<ELFWriter<ELF32BE>>(Obj, Out, !Config.StripSections, in createELFWriter()
151 return std::make_unique<ELFWriter<ELF64BE>>(Obj, Out, !Config.StripSections, in createELFWriter()
158 Object &Obj, raw_ostream &Out, in createWriter() argument
162 return std::make_unique<BinaryWriter>(Obj, Out); in createWriter()
164 return std::make_unique<IHexWriter>(Obj, Out); in createWriter()
[all …]
H A DObject.cpp41 Obj.ProgramHdrSegment.Offset + Seg.Index * sizeof(Elf_Phdr); in writePhdr()
1249 Obj->Flags = 0x0; in initFileHeader()
1250 Obj->Type = ET_REL; in initFileHeader()
1251 Obj->OSABI = ELFOSABI_NONE; in initFileHeader()
1252 Obj->ABIVersion = 0; in initFileHeader()
1253 Obj->Entry = 0x0; in initFileHeader()
1254 Obj->Machine = EM_NONE; in initFileHeader()
1255 Obj->Version = 1; in initFileHeader()
1258 void BasicELFBuilder::initHeaderSegment() { Obj->ElfHdrSegment.Index = 0; } in initHeaderSegment()
1261 auto &StrTab = Obj->addSection<StringTableSection>(); in addStrTab()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp52 void StackLayout::layoutObject(StackObject &Obj) { in layoutObject() argument
57 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject()
58 unsigned End = Start + Obj.Size; in layoutObject()
59 Regions.emplace_back(Start, End, Obj.Range); in layoutObject()
60 ObjectOffsets[Obj.Handle] = End; in layoutObject()
64 LLVM_DEBUG(dbgs() << "Layout: size " << Obj.Size << ", align " in layoutObject()
65 << Obj.Alignment << ", range " << Obj.Range << "\n"); in layoutObject()
66 assert(Obj.Alignment <= MaxAlignment); in layoutObject()
67 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject()
68 unsigned End = Start + Obj.Size; in layoutObject()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-readobj/
H A DCOFFDumper.cpp81 COFFDumper(const llvm::object::COFFObjectFile *Obj, ScopedPrinter &Writer) in COFFDumper() argument
82 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj), Writer(Writer), in COFFDumper()
182 const llvm::object::COFFObjectFile *Obj; member in __anon685e90ee0111::COFFDumper
202 const COFFObjectFile *Obj, StringRef SectionContents) in COFFObjectDumpDelegate() argument
204 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate()
248 std::unique_ptr<ObjDumper> createCOFFDumper(const object::COFFObjectFile &Obj, in createCOFFDumper() argument
250 return std::make_unique<COFFDumper>(&Obj, Writer); in createCOFFDumper()
261 auto SymI = Obj->symbol_end(); in resolveSymbol()
270 if (SymI == Obj->symbol_end()) in resolveSymbol()
331 const coff_section *Section = Obj->getCOFFSection(Sec); in printBinaryBlockWithRelocs()
[all …]
H A DMachODumper.cpp29 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper() argument
30 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj) {} in MachODumper()
58 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
60 void printSectionHeaders(const MachOObjectFile *Obj);
62 const MachOObjectFile *Obj; member in __anon86c853580111::MachODumper
70 std::unique_ptr<ObjDumper> createMachODumper(const object::MachOObjectFile &Obj, in createMachODumper() argument
72 return std::make_unique<MachODumper>(&Obj, Writer); in createMachODumper()
328 static void getSection(const MachOObjectFile *Obj, in getSection() argument
331 if (!Obj->is64Bit()) { in getSection()
332 MachO::section Sect = Obj->getSection(Sec); in getSection()
[all …]
H A DXCOFFDumper.cpp26 XCOFFDumper(const XCOFFObjectFile &Obj, ScopedPrinter &Writer) in XCOFFDumper() argument
27 : ObjDumper(Writer, Obj.getFileName()), Obj(Obj) {} in XCOFFDumper()
47 const XCOFFObjectFile &Obj; member in __anon3551c5860111::XCOFFDumper
53 W.printHex("Magic", Obj.getMagic()); in printFileHeaders()
54 W.printNumber("NumberOfSections", Obj.getNumberOfSections()); in printFileHeaders()
57 int32_t TimeStamp = Obj.getTimeStamp(); in printFileHeaders()
79 if (Obj.is64Bit()) { in printFileHeaders()
80 W.printHex("SymbolTableOffset", Obj.getSymbolTableOffset64()); in printFileHeaders()
81 W.printNumber("SymbolTableEntries", Obj.getNumberOfSymbolTableEntries64()); in printFileHeaders()
83 W.printHex("SymbolTableOffset", Obj.getSymbolTableOffset32()); in printFileHeaders()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h38 const MachOObjectFile &Obj = in processRelocationRef() local
41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef()
44 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef()
47 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef()
50 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef()
67 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
70 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
128 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
137 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objdump/
H A DELFDump.cpp56 static Error getRelocationValueString(const ELFObjectFile<ELFT> *Obj, in getRelocationValueString() argument
59 const ELFFile<ELFT> &EF = Obj->getELFFile(); in getRelocationValueString()
74 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
78 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString()
92 Obj->getSymbol(SI->getRawDataRefImpl()); in getRelocationValueString()
102 Obj->getSection((*SymSI)->getRawDataRefImpl()); in getRelocationValueString()
130 Error objdump::getELFRelocationValueString(const ELFObjectFileBase *Obj, in getELFRelocationValueString() argument
133 if (auto *ELF32LE = dyn_cast<ELF32LEObjectFile>(Obj)) in getELFRelocationValueString()
135 if (auto *ELF64LE = dyn_cast<ELF64LEObjectFile>(Obj)) in getELFRelocationValueString()
137 if (auto *ELF32BE = dyn_cast<ELF32BEObjectFile>(Obj)) in getELFRelocationValueString()
[all …]
H A DCOFFDump.cpp161 static Error resolveSectionAndAddress(const COFFObjectFile *Obj, in resolveSectionAndAddress() argument
172 ResolvedSection = Obj->getCOFFSection(**Iter); in resolveSectionAndAddress()
195 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument
202 if (Error E = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents()
204 return Obj->getSectionContents(Section, Contents); in getSectionContents()
236 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) { in printSEHTable() argument
241 if (Error E = Obj->getVaPtr(TableVA, IntPtr)) in printSEHTable()
242 reportError(std::move(E), Obj->getFileName()); in printSEHTable()
247 outs() << format(" 0x%x", P[I] + Obj->getPE32Header()->ImageBase); in printSEHTable()
272 static void printTLSDirectory(const COFFObjectFile *Obj) { in printTLSDirectory() argument
[all …]
H A Dllvm-objdump.cpp350 static const Target *getTarget(const ObjectFile *Obj) { in getTarget() argument
354 TheTriple = Obj->makeTriple(); in getTarget()
357 auto Arch = Obj->getArch(); in getTarget()
359 Obj->setARMSubArch(TheTriple); in getTarget()
367 reportError(Obj->getFileName(), "can't find target: " + Error); in getTarget()
380 const ObjectFile *Obj = Rel.getObject(); in getRelocationValueString() local
381 if (auto *ELF = dyn_cast<ELFObjectFileBase>(Obj)) in getRelocationValueString()
383 if (auto *COFF = dyn_cast<COFFObjectFile>(Obj)) in getRelocationValueString()
385 if (auto *Wasm = dyn_cast<WasmObjectFile>(Obj)) in getRelocationValueString()
387 if (auto *MachO = dyn_cast<MachOObjectFile>(Obj)) in getRelocationValueString()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp36 COFFParser(COFFYAML::Object &Obj, yaml::ErrorHandler EH) in COFFParser()
37 : Obj(Obj), SectionTableStart(0), SectionTableSize(0), ErrHandler(EH) { in COFFParser()
44 return static_cast<int32_t>(Obj.Sections.size()) > in useBigObj()
48 bool isPE() const { return Obj.OptionalHeader.hasValue(); } in isPE()
50 return Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_AMD64 || in is64Bit()
51 Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_ARM64; in is64Bit()
55 return Obj.OptionalHeader->Header.FileAlignment; in getFileAlignment()
67 for (std::vector<COFFYAML::Section>::iterator i = Obj.Sections.begin(), in parseSections()
68 e = Obj.Sections.end(); in parseSections()
106 for (std::vector<COFFYAML::Symbol>::iterator i = Obj.Symbols.begin(), in parseSymbols()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h164 T *Obj = nullptr; variable
170 IntrusiveRefCntPtr(T *obj) : Obj(obj) { retain(); } in IntrusiveRefCntPtr()
171 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr()
172 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr()
176 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X> S) : Obj(S.get()) { in IntrusiveRefCntPtr()
177 S.Obj = nullptr; in IntrusiveRefCntPtr()
182 IntrusiveRefCntPtr(std::unique_ptr<X> S) : Obj(S.release()) { in IntrusiveRefCntPtr()
193 T &operator*() const { return *Obj; }
194 T *operator->() const { return Obj; }
195 T *get() const { return Obj; } in get()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dxcoff2yaml.cpp19 const object::XCOFFObjectFile &Obj; member in __anon557f927f0111::XCOFFDumper
25 XCOFFDumper(const object::XCOFFObjectFile &obj) : Obj(obj) {} in XCOFFDumper()
38 YAMLObj.Header.Magic = Obj.getMagic(); in dumpHeader()
39 YAMLObj.Header.NumberOfSections = Obj.getNumberOfSections(); in dumpHeader()
40 YAMLObj.Header.TimeStamp = Obj.getTimeStamp(); in dumpHeader()
43 if (Obj.is64Bit()) in dumpHeader()
45 YAMLObj.Header.SymbolTableOffset = Obj.getSymbolTableOffset32(); in dumpHeader()
48 Obj.getRawNumberOfSymbolTableEntries32(); in dumpHeader()
49 YAMLObj.Header.AuxHeaderSize = Obj.getOptionalHeaderSize(); in dumpHeader()
50 YAMLObj.Header.Flags = Obj.getFlags(); in dumpHeader()
[all …]
H A Dcoff2yaml.cpp25 const object::COFFObjectFile &Obj; member in __anon77685ca70111::COFFDumper
34 COFFDumper(const object::COFFObjectFile &Obj);
40 COFFDumper::COFFDumper(const object::COFFObjectFile &Obj) : Obj(Obj) { in COFFDumper() argument
41 if (const object::pe32_header *PE32Header = Obj.getPE32Header()) in COFFDumper()
44 Obj.getPE32PlusHeader()) in COFFDumper()
48 dumpSections(Obj.getNumberOfSections()); in COFFDumper()
49 dumpSymbols(Obj.getNumberOfSymbols()); in COFFDumper()
85 const object::data_directory *DD = Obj.getDataDirectory(I++); in dumpOptionalHeader()
95 YAMLObj.Header.Machine = Obj.getMachine(); in dumpHeader()
96 YAMLObj.Header.Characteristics = Obj.getCharacteristics(); in dumpHeader()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DUser.cpp132 User *Obj = reinterpret_cast<User*>(End); in allocateFixedOperandUser() local
133 Obj->NumUserOperands = Us; in allocateFixedOperandUser()
134 Obj->HasHungOffUses = false; in allocateFixedOperandUser()
135 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser()
137 new (Start) Use(Obj); in allocateFixedOperandUser()
144 return Obj; in allocateFixedOperandUser()
159 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1); in operator new() local
160 Obj->NumUserOperands = 0; in operator new()
161 Obj->HasHungOffUses = true; in operator new()
162 Obj->HasDescriptor = false; in operator new()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp37 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
59 const MachOObjectFile &Obj = in processScatteredVANILLA() local
62 Obj.getRelocation(RelI->getRawDataRefImpl()); in processScatteredVANILLA()
65 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA()
66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA()
67 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA()
73 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA()
74 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr); in processScatteredVANILLA()
75 assert(TargetSI != Obj.section_end() && "Can't find section for symbol"); in processScatteredVANILLA()
81 findOrEmitSection(Obj, TargetSection, IsCode, ObjSectionToID)) in processScatteredVANILLA()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/
H A DDbe.h29 typedef long long Obj; typedef
131 void dbeSetSelObj (int dbevindex, Obj sel_obj, int type, int subtype);
133 Obj dbeGetSelObj (int dbevindex, int type, int subtype);
135 int dbeGetSelIndex (int dbevindex, Obj sel_obj, int type, int subtype);
149 Vector<void*> *dbeGetSummaryHotMarks (int dbevindex, Vector<Obj> *sel_objs, int type);
157 int dbeSetFuncData (int dbevindex, Obj sel_obj, int type, int subtype);
159 Vector<void*> *dbeGetFuncListV2 (int dbevindex, int mtype, Obj sel_obj, int type, int subtype);
161 Vector<Obj> *dbeGetComparableObjsV2 (int dbevindex, Obj sel_obj, int type);
162 Obj dbeConvertSelObj (Obj obj, int type);
173 Vector<char*> *dbeGetNames (int dbevindex, int type, Obj sel_obj);
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/
H A DDbe.h29 typedef long long Obj; typedef
131 void dbeSetSelObj (int dbevindex, Obj sel_obj, int type, int subtype);
133 Obj dbeGetSelObj (int dbevindex, int type, int subtype);
135 int dbeGetSelIndex (int dbevindex, Obj sel_obj, int type, int subtype);
149 Vector<void*> *dbeGetSummaryHotMarks (int dbevindex, Vector<Obj> *sel_objs, int type);
157 int dbeSetFuncData (int dbevindex, Obj sel_obj, int type, int subtype);
159 Vector<void*> *dbeGetFuncListV2 (int dbevindex, int mtype, Obj sel_obj, int type, int subtype);
161 Vector<Obj> *dbeGetComparableObjsV2 (int dbevindex, Obj sel_obj, int type);
162 Obj dbeConvertSelObj (Obj obj, int type);
173 Vector<char*> *dbeGetNames (int dbevindex, int type, Obj sel_obj);
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp52 llvm::json::Object toJSON(llvm::StringMap<std::vector<StringRef>> const &Obj) { in toJSON() argument
56 for (const auto &Item : Obj) { in toJSON()
62 llvm::json::Object toJSON(llvm::StringMap<std::string> const &Obj) { in toJSON() argument
66 for (const auto &Item : Obj) { in toJSON()
72 llvm::json::Object toJSON(ClassData const &Obj) { in toJSON() argument
75 if (!Obj.ASTClassLocations.empty()) in toJSON()
76 JsonObj["sourceLocations"] = Obj.ASTClassLocations; in toJSON()
77 if (!Obj.ASTClassRanges.empty()) in toJSON()
78 JsonObj["sourceRanges"] = Obj.ASTClassRanges; in toJSON()
79 if (!Obj.TemplateParms.empty()) in toJSON()
[all …]

1234567891011