reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lld/lib/ReaderWriter/MachO/ArchHandler.cpp
   62   assert((reloc.type & 0xFFF0) == 0);
   63   uint16_t result = reloc.type;
   93   result.type     = (RelocationInfoType)(pattern & 0xF);
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
  327   switch (reloc.type) {
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
  331   return ((r.type == ARM64_RELOC_ADDEND) || (r.type == ARM64_RELOC_SUBTRACTOR));
  331   return ((r.type == ARM64_RELOC_ADDEND) || (r.type == ARM64_RELOC_SUBTRACTOR));
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp
  246   return (reloc.type == GENERIC_RELOC_LOCAL_SECTDIFF) ||
  247          (reloc.type == GENERIC_RELOC_SECTDIFF);
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp
  356   return (reloc.type == X86_64_RELOC_SUBTRACTOR);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
  138     result.type       = (RelocationInfoType)
  148     result.type       = (RelocationInfoType)
  168     bitFieldSet(r0, true, r.type,      4, 4);
  174     bitFieldSet(r1, isBigEndian, r.type,     28, 4);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  633              + ", r1_type=" + Twine(reloc.type)
  643              + ", r2_type=" + Twine(reloc2.type)
  669              + ", r_type=" + Twine(reloc.type)
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  354     io.mapRequired("type",      reloc.type);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
  288   EXPECT_EQ(call.type, X86_64_RELOC_BRANCH);
  294   EXPECT_EQ(str.type, X86_64_RELOC_SIGNED);
  414   EXPECT_EQ(call.type, GENERIC_RELOC_VANILLA);
  422   EXPECT_EQ(sectDiff.type, GENERIC_RELOC_LOCAL_SECTDIFF);
  429   EXPECT_EQ(pair.type, GENERIC_RELOC_PAIR);
  546   EXPECT_EQ(call.type, ARM_THUMB_RELOC_BR22);
  553   EXPECT_EQ(movt.type, ARM_RELOC_HALF_SECTDIFF);
  559   EXPECT_EQ(movtPair.type, ARM_RELOC_PAIR);
  565   EXPECT_EQ(movw.type, ARM_RELOC_HALF_SECTDIFF);
  571   EXPECT_EQ(movwPair.type, ARM_RELOC_PAIR);
  689   EXPECT_EQ(bl.type, PPC_RELOC_BR24);
  696   EXPECT_EQ(lo.type, PPC_RELOC_LO16_SECTDIFF);
  702   EXPECT_EQ(loPair.type, PPC_RELOC_PAIR);
  708   EXPECT_EQ(ha.type, PPC_RELOC_HA16_SECTDIFF);
  714   EXPECT_EQ(haPair.type, PPC_RELOC_PAIR);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
   50   result.type = type;
   64   result.type = type;
  186   EXPECT_EQ(call.type, X86_64_RELOC_BRANCH);
  192   EXPECT_EQ(gotLoad.type, X86_64_RELOC_GOT_LOAD);
  198   EXPECT_EQ(gotUse.type, X86_64_RELOC_GOT);
  204   EXPECT_EQ(signed0.type, X86_64_RELOC_SIGNED);
  210   EXPECT_EQ(signed1.type, X86_64_RELOC_SIGNED_1);
  216   EXPECT_EQ(signed4.type, X86_64_RELOC_SIGNED_4);
  299   EXPECT_EQ(call.type, GENERIC_RELOC_VANILLA);
  307   EXPECT_EQ(absLoad.type, GENERIC_RELOC_VANILLA);
  315   EXPECT_EQ(pic1.type, GENERIC_RELOC_LOCAL_SECTDIFF);
  321   EXPECT_EQ(pic2.type, GENERIC_RELOC_PAIR);
  326   EXPECT_EQ(tlv.type, GENERIC_RELOC_TLV);
  425   EXPECT_EQ(blx.type, ARM_THUMB_RELOC_BR22);
  433   EXPECT_EQ(movw1.type, ARM_RELOC_HALF_SECTDIFF);
  439   EXPECT_EQ(movw2.type, ARM_RELOC_PAIR);
  445   EXPECT_EQ(movt1.type, ARM_RELOC_HALF_SECTDIFF);
  451   EXPECT_EQ(movt2.type, ARM_RELOC_PAIR);
  456   EXPECT_EQ(absPointer.type, ARM_RELOC_VANILLA);
  582   EXPECT_EQ(br24.type, PPC_RELOC_BR24);
  590   EXPECT_EQ(br14.type, PPC_RELOC_BR14);
  598   EXPECT_EQ(pichi1.type, PPC_RELOC_HI16_SECTDIFF);
  604   EXPECT_EQ(pichi2.type, PPC_RELOC_PAIR);
  610   EXPECT_EQ(picha1.type, PPC_RELOC_HA16_SECTDIFF);
  616   EXPECT_EQ(picha2.type, PPC_RELOC_PAIR);
  622   EXPECT_EQ(piclo1.type, PPC_RELOC_LO16_SECTDIFF);
  628   EXPECT_EQ(piclo2.type, PPC_RELOC_PAIR);
  634   EXPECT_EQ(picloa1.type, PPC_RELOC_LO14_SECTDIFF);
  640   EXPECT_EQ(picloa2.type, PPC_RELOC_PAIR);
  646   EXPECT_EQ(abshi1.type, PPC_RELOC_HI16);
  652   EXPECT_EQ(abshi2.type, PPC_RELOC_PAIR);
  658   EXPECT_EQ(absha1.type, PPC_RELOC_HA16);
  664   EXPECT_EQ(absha2.type, PPC_RELOC_PAIR);
  670   EXPECT_EQ(abslo1.type, PPC_RELOC_LO16);
  676   EXPECT_EQ(abslo2.type, PPC_RELOC_PAIR);
  682   EXPECT_EQ(absloa1.type, PPC_RELOC_LO14);
  688   EXPECT_EQ(absloa2.type, PPC_RELOC_PAIR);
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
  297   EXPECT_EQ((int)reloc1.type, (int)llvm::MachO::X86_64_RELOC_BRANCH);
  306   EXPECT_EQ((int)reloc2.type, (int)llvm::MachO::X86_64_RELOC_SIGNED);
  427   EXPECT_EQ((int)reloc1.type, (int)llvm::MachO::GENERIC_RELOC_VANILLA);
  436   EXPECT_EQ((int)reloc2.type, (int)llvm::MachO::GENERIC_RELOC_LOCAL_SECTDIFF);
  444   EXPECT_EQ((int)reloc3.type, (int)llvm::MachO::GENERIC_RELOC_PAIR);
  555   EXPECT_EQ((int)reloc1.type, (int)llvm::MachO::ARM_RELOC_SECTDIFF);
  563   EXPECT_EQ((int)reloc2.type, (int)llvm::MachO::ARM_RELOC_PAIR);
  571   EXPECT_EQ((int)reloc3.type, (int)llvm::MachO::ARM_RELOC_BR24);
  695   EXPECT_EQ((int)reloc1.type, (int)llvm::MachO::ARM_THUMB_RELOC_BR22);
  704   EXPECT_EQ((int)reloc2.type, (int)llvm::MachO::ARM_RELOC_HALF_SECTDIFF);
  712   EXPECT_EQ((int)reloc3.type, (int)llvm::MachO::ARM_RELOC_PAIR);
  720   EXPECT_EQ((int)reloc4.type, (int)llvm::MachO::ARM_RELOC_HALF_SECTDIFF);
  728   EXPECT_EQ((int)reloc5.type, (int)llvm::MachO::ARM_RELOC_PAIR);