Lines Matching defs:ReferenceValue
3229 static const char *GuessCstringPointer(uint64_t ReferenceValue,
3238 ReferenceValue >= Sec.addr &&
3239 ReferenceValue < Sec.addr + Sec.size) {
3240 uint64_t sect_offset = ReferenceValue - Sec.addr;
3259 ReferenceValue >= Sec.addr &&
3260 ReferenceValue < Sec.addr + Sec.size) {
3261 uint64_t sect_offset = ReferenceValue - Sec.addr;
3280 // ReferenceValue passed in or nullptr. This is used when ReferenceValue maybe
3283 static const char *GuessIndirectSymbol(uint64_t ReferenceValue,
3298 ReferenceValue >= Sec.addr &&
3299 ReferenceValue < Sec.addr + Sec.size) {
3307 uint32_t index = Sec.reserved1 + (ReferenceValue - Sec.addr) / stride;
3329 ReferenceValue >= Sec.addr &&
3330 ReferenceValue < Sec.addr + Sec.size) {
3338 uint32_t index = Sec.reserved1 + (ReferenceValue - Sec.addr) / stride;
3430 static uint64_t GuessPointerPointer(uint64_t ReferenceValue,
3448 ReferenceValue >= Sec.addr &&
3449 ReferenceValue < Sec.addr + Sec.size) {
3450 uint64_t sect_offset = ReferenceValue - Sec.addr;
3467 ReferenceValue + 8 < Sec.addr + Sec.size) {
3540 // If no relocation information is found and a non-zero ReferenceValue for the
3544 uint64_t ReferenceValue = 0) {
3593 // We did not find an external relocation entry so look up the ReferenceValue
3595 SymbolName = GuessSymbolName(ReferenceValue, info->AddrMap);
3602 uint32_t ReferenceValue) {
3604 return get_symbol_64(sect_offset, S, info, n_value64, ReferenceValue);
4212 static const char *get_dyld_bind_info_symbolname(uint64_t ReferenceValue,
4221 uint64_t ReferenceValue,
4228 // entry for the class symbol at the ReferenceValue (the address of the
4231 r = get_pointer_64(ReferenceValue, offset, left, S, info);
4271 static const char *get_objc2_64bit_cfstring_name(uint64_t ReferenceValue,
4279 r = get_pointer_64(ReferenceValue, offset, left, S, info);
4305 static uint64_t get_objc2_64bit_selref(uint64_t ReferenceValue,
4310 const char *r = get_pointer_64(ReferenceValue, offset, left, S, info);
6823 // for the address passed in as ReferenceValue for printing as a comment with
6827 // If ReferenceValue is an address of literal cstring then a pointer to the
6831 // If ReferenceValue is an address of an Objective-C CFString, Selector ref or
6839 // ReferenceValue nullptr is returned and ReferenceType is unchanged.
6840 static const char *GuessLiteralPointer(uint64_t ReferenceValue,
6875 ReferenceValue = cantFail(Symbol.getValue());
6884 uint64_t pointer_value = GuessPointerPointer(ReferenceValue, info, classref,
6887 // Note the ReferenceValue is a pointer into the __objc_classrefs section.
6890 const char *name = get_dyld_bind_info_symbolname(ReferenceValue, info);
6905 get_objc2_64bit_class_name(pointer_value, ReferenceValue, info);
6915 const char *name = get_objc2_64bit_cfstring_name(ReferenceValue, info);
6920 pointer_value = get_objc2_64bit_selref(ReferenceValue, info);
6923 ReferenceValue = pointer_value;
6925 const char *name = GuessCstringPointer(ReferenceValue, info);
6939 // Lastly look for an indirect symbol with this ReferenceValue which is in
6941 name = GuessIndirectSymbol(ReferenceValue, info);
6951 // the Symbolizer. It looks up the ReferenceValue using the info passed via the
6953 // is created and returns the symbol name that matches the ReferenceValue or
6977 uint64_t ReferenceValue,
6989 const char *SymbolName = GuessSymbolName(ReferenceValue, info->AddrMap);
6992 *ReferenceName = GuessIndirectSymbol(ReferenceValue, info);
7010 GuessLiteralPointer(ReferenceValue, ReferencePC, ReferenceType, info);
7016 // instruction, passed in ReferenceValue and the address of the instruction
7020 info->adrp_inst = ReferenceValue;
7031 // passed in ReferenceValue.
7036 (info->adrp_inst & 0x1f) == ((ReferenceValue >> 5) & 0x1f)) {
7045 addxri_inst = ReferenceValue;
7050 ReferenceValue = (info->adrp_addr & 0xfffffffffffff000LL) +
7054 GuessLiteralPointer(ReferenceValue, ReferencePC, ReferenceType, info);
7061 // instruction is passed in ReferenceValue.
7066 (info->adrp_inst & 0x1f) == ((ReferenceValue >> 5) & 0x1f)) {
7075 ldrxui_inst = ReferenceValue;
7078 ReferenceValue = (info->adrp_addr & 0xfffffffffffff000LL) +
7082 GuessLiteralPointer(ReferenceValue, ReferencePC, ReferenceType, info);
7087 // ReferenceValue is the PC plus the immediate value.
7092 GuessLiteralPointer(ReferenceValue, ReferencePC, ReferenceType, info);
10492 // address, ReferenceValue, in the Mach-O file and looks in the dyld bind
10495 static const char *get_dyld_bind_info_symbolname(uint64_t ReferenceValue,
10509 auto name = info->bindtable->lookup(ReferenceValue);