Lines Matching refs:Ref

1800   DataRefImpl Ref;  in symbol_begin()  local
1801 Ref.d.a = 1; // Arbitrary non-zero value so that Ref.p is non-null in symbol_begin()
1802 Ref.d.b = 0; // Symbol index in symbol_begin()
1803 return BasicSymbolRef(Ref, this); in symbol_begin()
1807 DataRefImpl Ref; in symbol_end() local
1808 Ref.d.a = 1; // Arbitrary non-zero value so that Ref.p is non-null in symbol_end()
1809 Ref.d.b = Symbols.size(); // Symbol index in symbol_end()
1810 return BasicSymbolRef(Ref, this); in symbol_end()
1919 DataRefImpl Ref; in getSymbolSection() local
1920 Ref.d.a = getSymbolSectionIdImpl(Sym); in getSymbolSection()
1921 return section_iterator(SectionRef(Ref, this)); in getSymbolSection()
2020 relocation_iterator WasmObjectFile::section_rel_begin(DataRefImpl Ref) const { in section_rel_begin()
2022 RelocRef.d.a = Ref.d.a; in section_rel_begin()
2027 relocation_iterator WasmObjectFile::section_rel_end(DataRefImpl Ref) const { in section_rel_end()
2028 const WasmSection &Sec = getWasmSection(Ref); in section_rel_end()
2030 RelocRef.d.a = Ref.d.a; in section_rel_end()
2037 uint64_t WasmObjectFile::getRelocationOffset(DataRefImpl Ref) const { in getRelocationOffset()
2038 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationOffset()
2042 symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const { in getRelocationSymbol()
2043 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationSymbol()
2052 uint64_t WasmObjectFile::getRelocationType(DataRefImpl Ref) const { in getRelocationType()
2053 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationType()
2058 DataRefImpl Ref, SmallVectorImpl<char> &Result) const { in getRelocationTypeName() argument
2059 const wasm::WasmRelocation &Rel = getWasmRelocation(Ref); in getRelocationTypeName()
2077 DataRefImpl Ref; in section_begin() local
2078 Ref.d.a = 0; in section_begin()
2079 return section_iterator(SectionRef(Ref, this)); in section_begin()
2083 DataRefImpl Ref; in section_end() local
2084 Ref.d.a = Sections.size(); in section_end()
2085 return section_iterator(SectionRef(Ref, this)); in section_end()
2106 const WasmSection &WasmObjectFile::getWasmSection(DataRefImpl Ref) const { in getWasmSection()
2107 assert(Ref.d.a < Sections.size()); in getWasmSection()
2108 return Sections[Ref.d.a]; in getWasmSection()
2117 WasmObjectFile::getWasmRelocation(const RelocationRef &Ref) const { in getWasmRelocation()
2118 return getWasmRelocation(Ref.getRawDataRefImpl()); in getWasmRelocation()
2122 WasmObjectFile::getWasmRelocation(DataRefImpl Ref) const { in getWasmRelocation()
2123 assert(Ref.d.a < Sections.size()); in getWasmRelocation()
2124 const WasmSection &Sec = Sections[Ref.d.a]; in getWasmRelocation()
2125 assert(Ref.d.b < Sec.Relocations.size()); in getWasmRelocation()
2126 return Sec.Relocations[Ref.d.b]; in getWasmRelocation()