Home
last modified time | relevance | path

Searched refs:Vtable (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_type_hash_itanium.cpp209 VtablePrefix *getVtablePrefix(void *Vtable) { in getVtablePrefix() argument
210 Vtable = ptrauth_strip(Vtable, ptrauth_key_cxx_vtable_pointer); in getVtablePrefix()
211 VtablePrefix *Vptr = reinterpret_cast<VtablePrefix*>(Vtable); in getVtablePrefix()
235 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in checkDynamicType() local
236 if (!Vtable) in checkDynamicType()
238 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) { in checkDynamicType()
245 dynamic_cast<abi::__class_type_info*>(Vtable->TypeInfo); in checkDynamicType()
250 if (!isDerivedFromAtOffset(Derived, Base, -Vtable->Offset)) in checkDynamicType()
261 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in getDynamicTypeInfoFromVtable() local
262 if (!Vtable) in getDynamicTypeInfoFromVtable()
[all …]
H A Dubsan_handlers_cxx.cpp98 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable, in __ubsan_handle_cfi_bad_type() argument
108 ? getDynamicTypeInfoFromVtable((void *)Vtable) in __ubsan_handle_cfi_bad_type()
136 << Data->Type << CheckKindStr << (void *)Vtable; in __ubsan_handle_cfi_bad_type()
140 Diag(Vtable, DL_Note, ET, "invalid vtable"); in __ubsan_handle_cfi_bad_type()
142 Diag(Vtable, DL_Note, ET, "vtable is of type %0") in __ubsan_handle_cfi_bad_type()
147 const char *DstModule = Symbolizer::GetOrInit()->GetModuleNameForPc(Vtable); in __ubsan_handle_cfi_bad_type()
H A Dubsan_type_hash.h46 DynamicTypeInfo getDynamicTypeInfoFromVtable(void *Vtable);
H A Dubsan_handlers.h232 CFICheckFailData *Data, ValueHandle Vtable, bool ValidVtable,
H A Dubsan_handlers.cpp882 ValueHandle Vtable, in __ubsan_handle_cfi_bad_type_default() argument
892 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
896 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp2565 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType() local
2566 if (!Vtable) { in GetEHType()
2567 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2573 llvm::ConstantExpr::getGetElementPtr(Vtable->getValueType(), Vtable, Two); in GetEHType()
H A DItaniumCXXABI.cpp1644 llvm::Value *Vtable = in emitDynamicCastCall() local
1647 assert(Vtable); in emitDynamicCastCall()
1648 (void)Vtable; in emitDynamicCastCall()