Home
last modified time | relevance | path

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

/external/compiler-rt/lib/ubsan/
Dubsan_type_hash_itanium.cc196 VtablePrefix *getVtablePrefix(void *Vtable) { in getVtablePrefix() argument
197 VtablePrefix *Vptr = reinterpret_cast<VtablePrefix*>(Vtable); in getVtablePrefix()
221 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in checkDynamicType() local
222 if (!Vtable) in checkDynamicType()
224 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) { in checkDynamicType()
231 dynamic_cast<abi::__class_type_info*>(Vtable->TypeInfo); in checkDynamicType()
236 if (!isDerivedFromAtOffset(Derived, Base, -Vtable->Offset)) in checkDynamicType()
247 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in getDynamicTypeInfoFromVtable() local
248 if (!Vtable) in getDynamicTypeInfoFromVtable()
250 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) in getDynamicTypeInfoFromVtable()
[all …]
Dubsan_handlers_cxx.cc98 void HandleCFIBadType(CFICheckFailData *Data, ValueHandle Vtable, in HandleCFIBadType() argument
108 ? getDynamicTypeInfoFromVtable((void *)Vtable) in HandleCFIBadType()
131 << Data->Type << CheckKindStr << (void *)Vtable; in HandleCFIBadType()
135 const char *module = Symbolizer::GetOrInit()->GetModuleNameForPc(Vtable); in HandleCFIBadType()
137 Diag(Vtable, DL_Note, "invalid vtable in module %0") << module; in HandleCFIBadType()
139 Diag(Vtable, DL_Note, "invalid vtable"); in HandleCFIBadType()
141 Diag(Vtable, DL_Note, "vtable is of type %0") in HandleCFIBadType()
Dubsan_type_hash.h47 DynamicTypeInfo getDynamicTypeInfoFromVtable(void *Vtable);
Dubsan_handlers.cc553 void HandleCFIBadType(CFICheckFailData *Data, ValueHandle Vtable,
556 static void HandleCFIBadType(CFICheckFailData *Data, ValueHandle Vtable,
/external/clang/lib/CodeGen/
DCGObjCGNU.cpp1193 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType() local
1194 if (!Vtable) { in GetEHType()
1195 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
1201 llvm::ConstantExpr::getGetElementPtr(Vtable->getValueType(), Vtable, Two), in GetEHType()