Lines Matching refs:RelEntry

320   uint32_t getProvisionalValue(const WasmRelocationEntry &RelEntry);
324 uint32_t getRelocationIndexValue(const WasmRelocationEntry &RelEntry);
579 WasmObjectWriter::getProvisionalValue(const WasmRelocationEntry &RelEntry) { in getProvisionalValue() argument
580 switch (RelEntry.Type) { in getProvisionalValue()
584 const MCSymbolWasm *Sym = ResolveSymbol(*RelEntry.Symbol); in getProvisionalValue()
590 return getRelocationIndexValue(RelEntry); in getProvisionalValue()
595 if (!WasmIndices.count(RelEntry.Symbol)) in getProvisionalValue()
597 RelEntry.Symbol->getName()); in getProvisionalValue()
598 return WasmIndices[RelEntry.Symbol]; in getProvisionalValue()
602 static_cast<const MCSectionWasm &>(RelEntry.Symbol->getSection()); in getProvisionalValue()
603 return Section.getSectionOffset() + RelEntry.Addend; in getProvisionalValue()
609 const MCSymbolWasm *Sym = ResolveSymbol(*RelEntry.Symbol); in getProvisionalValue()
616 return Segment.Offset + Ref.Offset + RelEntry.Addend; in getProvisionalValue()
662 WasmObjectWriter::getRelocationIndexValue(const WasmRelocationEntry &RelEntry) { in getRelocationIndexValue() argument
663 if (RelEntry.Type == wasm::R_WEBASSEMBLY_TYPE_INDEX_LEB) { in getRelocationIndexValue()
664 if (!TypeIndices.count(RelEntry.Symbol)) in getRelocationIndexValue()
666 RelEntry.Symbol->getName()); in getRelocationIndexValue()
667 return TypeIndices[RelEntry.Symbol]; in getRelocationIndexValue()
670 return RelEntry.Symbol->getIndex(); in getRelocationIndexValue()
678 for (const WasmRelocationEntry &RelEntry : Relocations) { in applyRelocations() local
680 RelEntry.FixupSection->getSectionOffset() + in applyRelocations()
681 RelEntry.Offset; in applyRelocations()
683 LLVM_DEBUG(dbgs() << "applyRelocation: " << RelEntry << "\n"); in applyRelocations()
684 uint32_t Value = getProvisionalValue(RelEntry); in applyRelocations()
686 switch (RelEntry.Type) { in applyRelocations()
949 for (const WasmRelocationEntry &RelEntry : Relocs) { in writeRelocSection() local
951 RelEntry.Offset + RelEntry.FixupSection->getSectionOffset(); in writeRelocSection()
952 uint32_t Index = getRelocationIndexValue(RelEntry); in writeRelocSection()
954 W.OS << char(RelEntry.Type); in writeRelocSection()
957 if (RelEntry.hasAddend()) in writeRelocSection()
958 encodeSLEB128(RelEntry.Addend, W.OS); in writeRelocSection()
1496 for (const WasmRelocationEntry &RelEntry : CodeRelocations) in writeObject() local
1497 HandleReloc(RelEntry); in writeObject()
1498 for (const WasmRelocationEntry &RelEntry : DataRelocations) in writeObject() local
1499 HandleReloc(RelEntry); in writeObject()