File tree Expand file tree Collapse file tree
include/phasar/PhasarLLVM/TypeHierarchy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ class LLVMTypeHierarchy
100100
101101 static const std::string TypeInfoPrefixDemang;
102102
103+ static const std::string PureVirtualCallName;
104+
103105private:
104106 bidigraph_t TypeGraph;
105107 std::unordered_map<const llvm::StructType *, vertex_t > TypeVertexMap;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ auto OTFResolver::resolveVirtualCall(const llvm::CallBase *CallSite)
126126 }
127127 auto *Callee = VFs[VtableIndex];
128128 if (Callee == nullptr || !Callee->hasName () ||
129- Callee->getName () == " __cxa_pure_virtual " ) {
129+ Callee->getName () == LLVMTypeHierarchy::PureVirtualCallName ) {
130130 continue ;
131131 }
132132 PossibleCallTargets.insert (Callee);
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ const std::string LLVMTypeHierarchy::TypeInfoPrefix = "_ZTI";
6161
6262const std::string LLVMTypeHierarchy::TypeInfoPrefixDemang = " typeinfo for " ;
6363
64+ const std::string LLVMTypeHierarchy::PureVirtualCallName = " __cxa_pure_virtual" ;
65+
6466LLVMTypeHierarchy::VertexProperties::VertexProperties (
6567 const llvm::StructType *Type)
6668 : Type(Type), ReachableTypes({Type}) {}
You can’t perform that action at this time.
0 commit comments