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